diff options
author | Patrick Palka <ppalka@redhat.com> | 2022-03-30 10:13:11 -0400 |
---|---|---|
committer | Patrick Palka <ppalka@redhat.com> | 2022-03-30 10:13:11 -0400 |
commit | 3aaf9bf77047aecc23072fe3db7f13ecff72a7cf (patch) | |
tree | e15c7dfec64ccf61c1d69ad1b49ee016bebe37f6 /gcc/gcov-io.cc | |
parent | 6a777ceb0e975f0efc823d2d82e676346f068151 (diff) | |
download | gcc-3aaf9bf77047aecc23072fe3db7f13ecff72a7cf.zip gcc-3aaf9bf77047aecc23072fe3db7f13ecff72a7cf.tar.gz gcc-3aaf9bf77047aecc23072fe3db7f13ecff72a7cf.tar.bz2 |
c++: ICE with failed __is_constructible constraint [PR100474]
Here we're crashing when diagnosing an unsatisfied __is_constructible
constraint because diagnose_trait_expr doesn't recognize this trait
(along with a bunch of other traits). Fix this by adding handling for
all remaining traits and removing the default case so that when adding a
new trait we'll get a warning that diagnose_trait_expr needs to handle it.
PR c++/100474
gcc/cp/ChangeLog:
* constraint.cc (diagnose_trait_expr): Handle all remaining
traits appropriately. Remove default case.
gcc/testsuite/ChangeLog:
* g++.dg/cpp2a/concepts-traits3.C: New test.
Diffstat (limited to 'gcc/gcov-io.cc')
0 files changed, 0 insertions, 0 deletions