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