2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / parse / using3.C
blobc266b68eaf707edfc9fde23574b627da779ec455
1 // { dg-do compile }
3 // Copyright (C) 2003 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 6 Sep 2003 <nathan@codesourcery.com>
5 // Origin: stefaandr@hotmail.com
7 // PR c++/11794. Using decl in nested classes of a template class
9 template <typename T> struct a
11   struct a1: T
12   {
13     using T::aa;
14     
15     a1() { aa = 5; }
16   };
18 struct b { int aa; };
19 template <> struct a<int>::a1 { a1 () {} };
21 a<b>::a1 a_b;
22 a<int>::a1 a_i;