public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-4483] c++: improve template/crash90.C
@ 2021-10-18 14:21 Jason Merrill
  0 siblings, 0 replies; only message in thread
From: Jason Merrill @ 2021-10-18 14:21 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:582d43a48cb28e6ed36ea6388ca92f3d5d786a26

commit r12-4483-g582d43a48cb28e6ed36ea6388ca92f3d5d786a26
Author: Jason Merrill <jason@redhat.com>
Date:   Mon Oct 18 10:15:42 2021 -0400

    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.

Diff:
---
 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 }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-18 14:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-18 14:21 [gcc r12-4483] c++: improve template/crash90.C Jason Merrill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).