summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/crash47.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/template/crash47.C')
-rw-r--r--gcc/testsuite/g++.dg/template/crash47.C3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/template/crash47.C b/gcc/testsuite/g++.dg/template/crash47.C
new file mode 100644
index 000000000..9c2163209
--- /dev/null
+++ b/gcc/testsuite/g++.dg/template/crash47.C
@@ -0,0 +1,3 @@
+// PR c++/27102
+
+template<typename T> void T::X::foo() {} // { dg-error "invalid|not a type" }