diff options
author | Jason Merrill <jason@redhat.com> | 2021-05-19 17:33:21 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2021-05-19 23:10:53 -0400 |
commit | 75ab8b4829dec8c70470e8225c9add964f71ed74 (patch) | |
tree | c2ac53dfd730fda91342526f474a3243cd98a09f /libcpp/lex.c | |
parent | fe9a6614a16b5ea7f12141c50b6b7de984390ed8 (diff) | |
download | gcc-75ab8b4829dec8c70470e8225c9add964f71ed74.zip gcc-75ab8b4829dec8c70470e8225c9add964f71ed74.tar.gz gcc-75ab8b4829dec8c70470e8225c9add964f71ed74.tar.bz2 |
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.
Diffstat (limited to 'libcpp/lex.c')
0 files changed, 0 insertions, 0 deletions