summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.dg/lookup/using47.C
blob: c81864705c49ec78e88c8720c2ee7fd95b4ee6ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// PR c++/51152
// { dg-do compile }

struct A
{
    int a;
};

struct B
{
    int b1;
    int b2;
    A b3;
};

struct C : B
{
    typedef int R;
    typedef int S;
    typedef int T;
    using B::b1;
    using B::b2;
    using B::b3;
    void f()
    {
        b3.a;
	b3.~A();
    }
};
OpenPOWER on IntegriCloud