https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100634

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Jason Merrill
<ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:b54e50285c716fabc3980c5383c4898018a60b28

commit r11-8444-gb54e50285c716fabc3980c5383c4898018a60b28
Author: Jason Merrill <ja...@redhat.com>
Date:   Wed May 19 17:33:21 2021 -0400

    c++: _Complex template parameter [PR100634]

    We were crashing because invalid_nontype_parm_type_p allowed _Complex
    template parms, but convert_nontype_argument didn't know what to do for
    them.  Let's just disallow it, people can and should use std::complex
    instead.

            PR c++/100634

    gcc/cp/ChangeLog:

            * pt.c (invalid_nontype_parm_type_p): Return true for COMPLEX_TYPE.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp2a/nontype-complex1.C: New test.

Reply via email to