OSDN Git Service

2011-02-20 Paolo Carlini <paolo.carlini@oracle.com>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / crash85.C
1 // Contributed by Dodji Seketeli <dodji@redhat.com>
2 // Origin: PR c++/37142
3 // { dg-do compile }
4
5 template<typename T, const T a, template <typename U, U u> class W> struct A {};
6
7 template<typename T, const T t> struct B {};
8
9 int
10 main ()
11 {
12   A<long, 0, B> a;
13   return 0;
14 }
15