PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / template / typedef1.C
blob270adcdc9840d0406930ba303351910416ef1465
1 // { dg-do compile }
3 // Copyright (C) 2001 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 9 Dec 2001 <nathan@nathan@codesourcery.com>
6 // PR 72
8 template <typename T> struct A
10   typedef T type;
13 template <typename T> struct B
15   typedef int xxx; // { dg-message "" }
16   typedef T xxx; // { dg-error "" }
17   typedef typename A<T>::type xxx; // { dg-error "" }
18   typedef A<int>::type xxx; // { dg-error "" }
21 B<int> good;