2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / typename26.C
blob14476b1a83c7dce953c84594402d71dd9eda81b0
1 // { dg-do assemble  }
2 // 
3 // Copyright (C) 2000 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 9 Aug 2000 <nathan@codesourcery.com>
6 // We failed to spot where a typename T::t didn't actually declare
7 // anything. [7.1.5.3]/1
9 template<class LB> struct C
11   typename LB::DataType;      // { dg-error "" } does not declare anything
12   typename LB::DataType m;
15 struct B {};
16 struct A {
17   B;                          // { dg-error "" } does not declare anything
18   B m;