Commit 3b60ab0a by Jakub Jelinek Committed by Jakub Jelinek

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
parent 4ccc4e30
2018-11-19 Jakub Jelinek <jakub@redhat.com>
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.
......
// PR c++/60994
// { dg-do compile }
struct s
{
static int i;
};
template <typename T>
int s()
{
return s::i; // { dg-bogus "is not a class" }
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment