OSDN Git Service

* g++.old-deja/g++.pt/defarg8.C: New test.
authoroliva <oliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Nov 1998 20:34:47 +0000 (20:34 +0000)
committeroliva <oliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Nov 1998 20:34:47 +0000 (20:34 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23912 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.pt/defarg8.C [new file with mode: 0644]

index 4780eff..271ccfe 100644 (file)
@@ -1,5 +1,7 @@
 1998-11-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * g++.old-deja/g++.pt/defarg8.C: New test.
+
        * g++.old-deja/g++.pt/instantiate6.C: New test.
 
        * g++.old-deja/g++.pt/static6.C: New test.
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/defarg8.C b/gcc/testsuite/g++.old-deja/g++.pt/defarg8.C
new file mode 100644 (file)
index 0000000..6bb1125
--- /dev/null
@@ -0,0 +1,14 @@
+// Build don't link:
+
+// Default arguments containing more than one non-nested explicit
+// template argument leads to parse error
+
+template <class T> class foo1;
+template <class T, class U> class foo2;
+
+struct bar {
+  template <class T, class U>
+  bar(int i = foo1<T>::baz, // ok
+      int j = int(foo2<T, U>::baz), // ok
+      int k = foo2<T, U>::baz) {} // gets bogus error - before > - XFAIL *-*-*
+};