view gcc/testsuite/g++.dg/lookup/using47.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

// 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();
    }
};