Skip to content
Snippets Groups Projects
Commit 75ab8b48 authored by Jason Merrill's avatar Jason Merrill
Browse files

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.
parent fe9a6614
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment