blob: 03432cf45326af78395258cff115fc7f0ab21f8c [file] [log] [blame]
// Test for suggestion to try 'using enum'.
// { dg-do compile { target c++20 } }
struct A
{
enum E { e };
};
struct B
{
using A::E; // { dg-error "" }
// { dg-message "using enum" "" { target *-*-* } .-1 }
};