PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / template / typename14.C
blob7e73cb0f3ad525177925ce13d1c1de790aa578d8
1 // { dg-do compile }
3 // Copyright (C) 2007 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 21 Jul 2007 <nathan@codesourcery.com>
6 template <typename T> struct A  
8   typedef const T X;
9   
10   struct B;
13 template <typename T> struct A<T>::B
15   typedef volatile typename A<T>::X Y;
17   T const volatile *Foo ();
20 template<typename T>
21 typename A<T>::B::Y *A<T>::B::Foo ()
23   return 0;