summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/inherit/template-as-base.C
blob: 5d34b15d8fcb4f6984dad09fb863426740b6696e (plain)
1
2
3
4
5
6
7
8
9
// Contributed by Gabriel Dos Reis <gdr@codesourcery.com>
// Distilled from PR C++/3656

namespace N
{
    template<typename> struct X { };
}

struct A : N::X { }; // { dg-error "expected class-name" "" }