public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/redhat/heads/gcc-8-branch)] testsuite: Adjust expected error in a testcase [PR98358]
@ 2021-05-14 14:55 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2021-05-14 14:55 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:27b3e1e11d3f1cc7a2994bb9d143a1a02d8c51c3

commit 27b3e1e11d3f1cc7a2994bb9d143a1a02d8c51c3
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Fri Apr 30 15:17:31 2021 +0200

    testsuite: Adjust expected error in a testcase [PR98358]
    
    On Fri, Apr 23, 2021 at 05:24:00PM -0400, Jason Merrill via Gcc wrote:
    > > We have one P1 bug though - P98358 - it is unclear if just changing the
    > > testcase is all that is needed or if some C++ FE changes are needed.
    >
    > The error message quoted in the PR looks correct, so I think changing
    > the testcase is sufficient.
    
    2021-04-30  Jakub Jelinek  <jakub@redhat.com>
    
            PR c++/98358
            * g++.dg/template/pr98297.C: Expect error about shadowing template template
            parameter rather than does not declare anything error.

Diff:
---
 gcc/testsuite/g++.dg/template/pr98297.C | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/g++.dg/template/pr98297.C b/gcc/testsuite/g++.dg/template/pr98297.C
index 0dd63a57b5c..9e7d07e2c18 100644
--- a/gcc/testsuite/g++.dg/template/pr98297.C
+++ b/gcc/testsuite/g++.dg/template/pr98297.C
@@ -2,5 +2,5 @@
 // { dg-do compile { target c++11 } }
 template <template <class> class a>
 struct [[b]]
-a <int>; // { dg-error "does not declare anything" }
+a <int>; // { dg-error "name of class shadows template template parameter" }
 // { dg-warning "ignored" "" { target *-*-* } .-1 }


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

only message in thread, other threads:[~2021-05-14 14:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-14 14:55 [gcc(refs/vendors/redhat/heads/gcc-8-branch)] testsuite: Adjust expected error in a testcase [PR98358] Jakub Jelinek

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