aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/other/crash-12.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/g++.dg/other/crash-12.C')
-rw-r--r--gcc-4.9/gcc/testsuite/g++.dg/other/crash-12.C25
1 files changed, 25 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/g++.dg/other/crash-12.C b/gcc-4.9/gcc/testsuite/g++.dg/other/crash-12.C
new file mode 100644
index 000000000..6612ff216
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/g++.dg/other/crash-12.C
@@ -0,0 +1,25 @@
+// Origin: PR c++/43953
+
+template<typename T,
+ typename U,
+ typename T::type V> class bad;
+
+// partial specialization
+// for T = U
+template<typename T, typename T::type V>
+class bad<T, T, V>
+{
+public:
+ static void foo() {}
+};
+
+struct dummy
+{
+ typedef int type;
+};
+
+int main()
+{
+ bad<dummy, dummy, 0>::foo();
+}
+