From: Jakub Jelinek Date: Mon, 19 Nov 2018 14:01:56 +0000 (+0100) Subject: re PR c++/60994 (gcc does not recognize hidden/shadowed enumeration as valid nested... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3b60ab0aab44841a4b7206ecb658fc761959d93c;p=gcc.git 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 --- 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" } +}