PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / template / typename2.C
blob251eb3f37b2134ee596579ead34f6668bc096f05
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 "does not name a type" "no type" }
25   // { dg-message "note" "note" { target *-*-* } .-1 }