aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.7/gcc/testsuite/g++.dg/inherit/base3.C
blob: 313d04242918f93d2fc14d8189cff58a1b0782ec (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 "required" }