2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / template / typename2.C
blob644c62a7f4ce07431705b1537edb931fbe423e64
1 // { dg-do compile }
2 // { dg-options "" }
4 // Copyright (C) 2001, 2003 Free Software Foundation, Inc.
5 // Contributed by Nathan Sidwell 21 Mar 2002 <nathan@codesourcery.com>
7 // PR 5507. Overzealous implicit typename warning
9 template<typename _CharT>
10 class __ctype_abstract_base
12   typedef int mask;
15 template<typename _CharT>
16 class ctype : public __ctype_abstract_base<_CharT>
18   typedef typename ctype::mask mask;
21 template<typename _CharT>
22 class ctype2 : public __ctype_abstract_base<_CharT>
24   typedef mask mask; // { dg-error "" }