☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
pr65954.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/pr65954.C
code
plain
raw
1
// { dg-do compile { target c++11 } }
2
3
struct Shape {
4
enum class Type
5
{ Circle, Square };
6
};
7
8
9
void Foo (Shape &shape)
10
{
11
+shape.Type::NOPE; // { dg-error "is not a member of" }
12
}