Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.pt/typename26.C

raw
1 // { dg-do assemble }
2 //
3 // Copyright (C) 2000 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 9 Aug 2000 <[email protected]>
5
6 // We failed to spot where a typename T::t didn't actually declare
7 // anything. [7.1.5.3]/1
8
9 template<class LB> struct C
10 {
11 typename LB::DataType; // { dg-error "" } does not declare anything
12 typename LB::DataType m;
13 };
14
15 struct B {};
16 struct A {
17 B; // { dg-error "" } does not declare anything
18 B m;
19 };