Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / incomplete1.C
blob36a9f5ee44c27562d4055e5272174e6f7e8303c8
1 // { dg-do assemble  }
3 // Copyright (C) 2000 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 28 Nov 2000 <nathan@codesourcery.com>
6 // Inspired by 756. We'd ICE when trying to define a member of an
7 // incomplete template type.
9 template<class X> struct ObjCount;
11 template<class X> int ObjCount<X>::m; // { dg-error "" } undefined type