repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix PR c++/69139 (deduction failure with trailing return type)
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
enum25.C
blob
cb2cf8f5363b15bf528f981c6ce33eb1cf7c9dfb
1
// PR c++/56793
2
// { dg-require-effective-target c++11 }
3
4
struct A
5
{
6
enum struct B {X, Y} b;
7
} a;
8
9
enum struct D {X,Y};
10
struct C { } c;
11
12
int main ()
13
{
14
if (a.b == a.B::Y)
15
a.b = A::B::X;
16
17
c.D::Y; // { dg-error "not a member" }
18
}