repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
enum_base3.C
blob
5f7e83e14190e1014e54fec27e9558c84319c118
1
// PR c++/70627
2
// { dg-do compile { target c++11 } }
3
4
struct D;
5
struct A
6
{
7
D *operator->();
8
};
9
struct B
10
{
11
template <typename... T> void foo (T &&...) {}
12
};
13
typedef unsigned char G;
14
enum class H : G;
15
struct C
16
{
17
};
18
struct D : C
19
{
20
B foo () const { B a; a.foo (d); return B(); }
21
H d;
22
};
23
struct F : C
24
{
25
void foo ();
26
A f;
27
};
28
enum class H : unsigned char;
29
void F::foo () { B b = f->foo (); }