public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Fix g++.dg/cpp0x/regress/template-function1.C
@ 2012-06-05  3:12 Mike Stump
  0 siblings, 0 replies; only message in thread
From: Mike Stump @ 2012-06-05  3:12 UTC (permalink / raw)
  To: GCC Patches

Continuing fixes in the series...  I'll add () where they influence the semantics of what is tested.  I'll see about removing them when they are unnecessary because the underlying issue is fixed.

Index: testsuite/g++.dg/cpp0x/regress/template-function1.C
===================================================================
--- testsuite/g++.dg/cpp0x/regress/template-function1.C	(revision 188225)
+++ testsuite/g++.dg/cpp0x/regress/template-function1.C	(working copy)
@@ -23,7 +23,8 @@ char c1[1];
 C<c1, 0> c;
 
 template<const char *, int> struct D {};
-template<int N> struct D<__func__, N> {};	// { dg-error "cannot appear|is invalid|is not a valid|function scope|constant expression" }
+template<int N> struct D<__func__, N> {};	// { dg-error "(cannot appear|is invalid|is not a valid|function scope|constant expression)" }
+						// { dg-warning "function scope" "function scope" { target *-*-* } 26 }
 
 char d1[1];
 D<d1, 0> d;

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

only message in thread, other threads:[~2012-06-05  3:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-05  3:12 Fix g++.dg/cpp0x/regress/template-function1.C Mike Stump

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).