2008-05-30 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / defarg8.C
bloba72e85c4394dc236bd9372ab75a4b7c527f56691
1 // { dg-do assemble  }
3 // Default arguments containing more than one non-nested explicit
4 // template argument leads to parse error
6 // This might be ill formed. See DR 325 (one proposed resolution is to make
7 // it so)
9 template <class T> class foo1;
10 template <class T, class U> class foo2;
12 struct bar {
13   template <class T, class U>
14   bar(int i = foo1<T>::baz, // { dg-bogus "" }  - 
15       int j = int(foo2<T, U>::baz), // ok
16       int k = foo2<T, U>::baz) {} // ok?