summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/crash11.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/crash11.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/crash11.C21
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/crash11.C b/gcc/testsuite/g++.old-deja/g++.other/crash11.C
new file mode 100644
index 000000000..16fd61042
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.other/crash11.C
@@ -0,0 +1,21 @@
+// { dg-do assemble }
+// Origin: Alfred Minarik <a8601248@unet.univie.ac.at>
+
+template <typename T>
+struct allocator
+{
+ typedef int size_type;
+};
+
+template <typename T>
+struct string
+{
+ typedef typename allocator<T>::size_type size_type;
+
+ static size_type size;
+
+ size_type
+ max_size() const { return size; }
+};
+
+template struct string <char>;