aboutsummaryrefslogtreecommitdiff
path: root/gcc/config.gcc
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2020-04-07 14:24:52 -0400
committerMarek Polacek <polacek@redhat.com>2020-04-08 08:56:07 -0400
commita6479aa4c0532ee9ad1f098b4e82de9dc684e036 (patch)
tree27a48b54e66d8f29800f434fa5a11010af19cb79 /gcc/config.gcc
parent542f73539db1433303a4dd16bd2cfc5e7e12eda8 (diff)
downloadgcc-a6479aa4c0532ee9ad1f098b4e82de9dc684e036.zip
gcc-a6479aa4c0532ee9ad1f098b4e82de9dc684e036.tar.gz
gcc-a6479aa4c0532ee9ad1f098b4e82de9dc684e036.tar.bz2
c++: ICE with defaulted comparison operator [PR94478]
Here we ICE because early_check_defaulted_comparison passed a null ctx to same_type_p. The attached test is ill-formed according to [class.compare.default]/1, so fixed by detecting this case early. PR c++/94478 - ICE with defaulted comparison operator * method.c (early_check_defaulted_comparison): Give an error when the context is null. * g++.dg/cpp2a/spaceship-err4.C: New test.
Diffstat (limited to 'gcc/config.gcc')
0 files changed, 0 insertions, 0 deletions