aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2021-10-18 10:15:42 -0400
committerJason Merrill <jason@redhat.com>2021-10-18 10:21:16 -0400
commit582d43a48cb28e6ed36ea6388ca92f3d5d786a26 (patch)
tree51bf2c075bed09c6634249fcefcd52e1ec060451 /gcc
parent1257aad1073e1fb8989acdf7ca832fba82d10534 (diff)
downloadgcc-582d43a48cb28e6ed36ea6388ca92f3d5d786a26.zip
gcc-582d43a48cb28e6ed36ea6388ca92f3d5d786a26.tar.gz
gcc-582d43a48cb28e6ed36ea6388ca92f3d5d786a26.tar.bz2
c++: improve template/crash90.C
In r208350 I improved the diagnostic location of the initializer-list pedwarn in C++98 mode on crash90.C, but didn't adjust the testcase to verify the location, so reverting that change didn't break regression testing. gcc/testsuite/ChangeLog: * g++.dg/template/crash90.C: Check location of pedwarn.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/g++.dg/template/crash90.C3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/testsuite/g++.dg/template/crash90.C b/gcc/testsuite/g++.dg/template/crash90.C
index 125ab0a..fee7dc5 100644
--- a/gcc/testsuite/g++.dg/template/crash90.C
+++ b/gcc/testsuite/g++.dg/template/crash90.C
@@ -4,5 +4,6 @@ template < unsigned >
struct A ;
template < typename >
struct B ;
-template < typename T , A < B < T > {} // { dg-error "parse error|non-type|initializer" }
+template < typename T , A < B < T > {} // { dg-error "parse error|non-type" }
// { dg-error "39:expected" "" { target *-*-* } .-1 }
+// { dg-error "37:initializer list" "" { target c++98_only } .-2 }