summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/error17.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/parse/error17.C')
-rw-r--r--gcc/testsuite/g++.dg/parse/error17.C9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/parse/error17.C b/gcc/testsuite/g++.dg/parse/error17.C
new file mode 100644
index 000000000..b308c912f
--- /dev/null
+++ b/gcc/testsuite/g++.dg/parse/error17.C
@@ -0,0 +1,9 @@
+// { dg-options "-fshow-column" }
+// PR c++/16965
+
+template <typename T> struct B {
+ static int Bar(T); // { dg-error "14:candidates are: |with T = int" }
+};
+struct D : B<int>, B<char> {};
+
+int i2 = D::Bar(2); // { dg-error "10:reference to 'Bar' is ambiguous" }