blob: 7da6623612a4a7aae4c342674b6014ddfe0333b7 [file] [log] [blame]
// Origin: PR c++/38357
// { dg-do compile }
class BUG
{
public:
bool name() { return true; }
};
template <bool T>
struct BUG1_5
{
};
template <bool name>
class BUG2 : BUG
{
public:
typedef BUG1_5<name> ptr; // { dg-error "BUG::name" }
};
int main()
{
BUG2<false> b;
return 0;
}