aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/other/error16.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/g++.dg/other/error16.C')
-rw-r--r--gcc-4.9/gcc/testsuite/g++.dg/other/error16.C14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/g++.dg/other/error16.C b/gcc-4.9/gcc/testsuite/g++.dg/other/error16.C
new file mode 100644
index 000000000..38c0fd63f
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/g++.dg/other/error16.C
@@ -0,0 +1,14 @@
+// PR c++/17763
+
+template <typename U> struct Outer {
+ struct Inner {};
+ Inner foo();
+};
+
+typedef int X;
+typedef Outer<X> XOuter;
+
+int main() {
+ Outer<int> ab;
+ ab.foo() == 1; // { dg-error "operand types are 'Outer<int>::Inner' and 'int'" }
+}