1 // { dg-do compile } 2 3 // Copyright (C) 2003 Free Software Foundation, Inc. 4 // Contributed by Nathan Sidwell 6 Sep 2003 <nathan@codesourcery.com> 5 // Origin: stefaandr@hotmail.com 6 7 // PR c++/11794. Using decl in nested classes of a template class 8 9 template <typename T> struct a 10 { 11 struct a1: T 12 { 13 using T::aa; 14 a1a::a115 a1() { aa = 5; } 16 }; 17 }; 18 struct b { int aa; }; 19 template <> struct a<int>::a1 { a1 () {} }; 20 21 a<b>::a1 a_b; 22 a<int>::a1 a_i; 23