summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/inherit/base3.C
blob: 866b2906c4f6362eebb2b7bfae659e0c34f044d8 (plain)
1
2
3
4
5
6
7
8
// PR c++/35985
// { dg-do compile }

template<typename T> struct A : T {};  // { dg-error "struct or class type" }

struct B;

A<void (B::*)()> a;  // { dg-message "instantiated" }