public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* C++ PATCH to tweak variadic126.C test (PR c++/88866)
@ 2019-01-15 18:27 Marek Polacek
  2019-01-15 18:29 ` Jason Merrill
  0 siblings, 1 reply; 2+ messages in thread
From: Marek Polacek @ 2019-01-15 18:27 UTC (permalink / raw)
  To: Jason Merrill, GCC Patches

This test was failing in c++2a because the error messages are different
because we're now trying to parse braced-list in template-argument-list.

Tested on x86_64-linux, ok for trunk?

2019-01-15  Marek Polacek  <polacek@redhat.com>

	PR c++/88866
	* g++.dg/cpp0x/variadic126.C: Tweak dg-error.

diff --git gcc/testsuite/g++.dg/cpp0x/variadic126.C gcc/testsuite/g++.dg/cpp0x/variadic126.C
index 513c7e54a07..a219309f058 100644
--- gcc/testsuite/g++.dg/cpp0x/variadic126.C
+++ gcc/testsuite/g++.dg/cpp0x/variadic126.C
@@ -3,6 +3,6 @@
 
 template < typename ... > struct A;
 
-struct B : A <			// { dg-error "invalid" }
+struct B : A <			// { dg-error "invalid" "" { target c++17_down } }
 {
-};
+}; // { dg-error "mismatch|expected" "" { target c++2a } }

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: C++ PATCH to tweak variadic126.C test (PR c++/88866)
  2019-01-15 18:27 C++ PATCH to tweak variadic126.C test (PR c++/88866) Marek Polacek
@ 2019-01-15 18:29 ` Jason Merrill
  0 siblings, 0 replies; 2+ messages in thread
From: Jason Merrill @ 2019-01-15 18:29 UTC (permalink / raw)
  To: Marek Polacek, GCC Patches

On 1/15/19 1:27 PM, Marek Polacek wrote:
> This test was failing in c++2a because the error messages are different
> because we're now trying to parse braced-list in template-argument-list.
> 
> Tested on x86_64-linux, ok for trunk?
> 
> 2019-01-15  Marek Polacek  <polacek@redhat.com>
> 
> 	PR c++/88866
> 	* g++.dg/cpp0x/variadic126.C: Tweak dg-error.
> 
> diff --git gcc/testsuite/g++.dg/cpp0x/variadic126.C gcc/testsuite/g++.dg/cpp0x/variadic126.C
> index 513c7e54a07..a219309f058 100644
> --- gcc/testsuite/g++.dg/cpp0x/variadic126.C
> +++ gcc/testsuite/g++.dg/cpp0x/variadic126.C
> @@ -3,6 +3,6 @@
>   
>   template < typename ... > struct A;
>   
> -struct B : A <			// { dg-error "invalid" }
> +struct B : A <			// { dg-error "invalid" "" { target c++17_down } }
>   {
> -};
> +}; // { dg-error "mismatch|expected" "" { target c++2a } }

OK.

Jason

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-01-15 18:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-15 18:27 C++ PATCH to tweak variadic126.C test (PR c++/88866) Marek Polacek
2019-01-15 18:29 ` 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).