From 3b60ab0aab44841a4b7206ecb658fc761959d93c Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Mon, 19 Nov 2018 15:01:56 +0100 Subject: [PATCH] re PR c++/60994 (gcc does not recognize hidden/shadowed enumeration as valid nested-name-specifier) PR c++/60994 * g++.dg/lookup/pr60994.C: New test. From-SVN: r266275 --- gcc/testsuite/ChangeLog | 3 +++ gcc/testsuite/g++.dg/lookup/pr60994.C | 13 +++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 gcc/testsuite/g++.dg/lookup/pr60994.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 30fbd325f49..51196ba8625 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,8 @@ 2018-11-19 Jakub Jelinek + PR c++/60994 + * g++.dg/lookup/pr60994.C: New test. + PR debug/87039 * g++.dg/gomp/pr78363-4.C: New test. * g++.dg/gomp/pr78363-5.C: New test. diff --git a/gcc/testsuite/g++.dg/lookup/pr60994.C b/gcc/testsuite/g++.dg/lookup/pr60994.C new file mode 100644 index 00000000000..c6bd107f7a6 --- /dev/null +++ b/gcc/testsuite/g++.dg/lookup/pr60994.C @@ -0,0 +1,13 @@ +// PR c++/60994 +// { dg-do compile } + +struct s +{ + static int i; +}; + +template +int s() +{ + return s::i; // { dg-bogus "is not a class" } +} -- 2.30.2