aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/template30.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/template30.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.jason/template30.C13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/template30.C b/gcc/testsuite/g++.old-deja/g++.jason/template30.C
new file mode 100644
index 00000000000..b9a6dbeaf3f
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.jason/template30.C
@@ -0,0 +1,13 @@
+template <class T, class U>
+int func(U, T); // ERROR - ref below
+
+template <class T, class U>
+int func(T, U)
+{ // ERROR - ref below
+ return 2;
+}
+
+main ()
+{
+ func (0, 1); // ERROR - ambiguous
+}