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.
---
 gcc/testsuite/g++.dg/template/crash90.C | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/testsuite/g++.dg/template/crash90.C 
b/gcc/testsuite/g++.dg/template/crash90.C
index 125ab0a9d46..fee7dc5ec46 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 }

base-commit: 1257aad1073e1fb8989acdf7ca832fba82d10534
-- 
2.27.0

Reply via email to