Skip to content
Snippets Groups Projects
user avatar
Jason Merrill authored
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.
75ab8b48
History
Name Last commit Last update
..