aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@dcc.unicamp.br>1998-11-26 20:34:47 +0000
committerAlexandre Oliva <oliva@gcc.gnu.org>1998-11-26 20:34:47 +0000
commitc885faf89a6aebe6324c52df7c8a061364508406 (patch)
treee4e8aca25b9e7508b1a2ca54b8fefe104d1cfd00 /gcc
parentbe537f34b0d0b4800aa0c53582b3adf1d1a729c1 (diff)
downloadgcc-c885faf89a6aebe6324c52df7c8a061364508406.zip
gcc-c885faf89a6aebe6324c52df7c8a061364508406.tar.gz
gcc-c885faf89a6aebe6324c52df7c8a061364508406.tar.bz2
* g++.old-deja/g++.pt/defarg8.C: New test.
From-SVN: r23912
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog2
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/defarg8.C14
2 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 4780eff..271ccfe 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
index 0000000..6bb1125
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.pt/defarg8.C
@@ -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 *-*-*
+};