summaryrefslogtreecommitdiff
path: root/gcc/testsuite/ada
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2022-07-15 09:51:50 -0400
committerMarek Polacek <polacek@redhat.com>2022-07-26 09:21:56 -0400
commit9be0feeadeeac2166fbe3823421bc5712bc59087 (patch)
tree9882f83415d8aa60ce7d89fff6581ba3774868ca /gcc/testsuite/ada
parent60954a06ceb1598d86763e5504d8e1b874b6bd6a (diff)
c++: ICE with erroneous template redeclaration [PR106311]
Here we ICE trying to get DECL_SOURCE_LOCATION of the parm that happens to be error_mark_node in this ill-formed test. I kept running into this while reducing code, so it'd be good to have it fixed. PR c++/106311 gcc/cp/ChangeLog: * pt.cc (redeclare_class_template): Check DECL_P before accessing DECL_SOURCE_LOCATION. gcc/testsuite/ChangeLog: * g++.dg/template/redecl5.C: New test. (cherry picked from commit 2333b58c9892667545d0c2c3ecd2d7b947197511)
Diffstat (limited to 'gcc/testsuite/ada')
0 files changed, 0 insertions, 0 deletions