3 // Copyright (C) 2000 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 19 Jan 2001 <nathan@codesourcery.com>
6 // Bug 1656. We failed to make sure that a template-id was built
7 // from a primary template.
9 template <int dim> struct Outer
15 Inner<dim> i; // { dg-error "" } non-template
16 Inner<> j; // { dg-error "" } non-template
24 Outer<1>::Inner<2> z; // { dg-error "" } non-template
25 O<1> w; // { dg-error "" } non-template
28 template <typename T, template <typename C> class TPL>
32 T<int> s; // { dg-error "" } non-template
35 template <typename T> struct Y
42 X<int, O> b; // { dg-error "" } non-template