summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/template/crash16.C21
2 files changed, 26 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index b21ed54e29f..df74e491fee 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2003-12-30 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+
+ PR c++/10079
+ * g++.dg/template/crash16.C: New test.
+
2003-12-30 Mark Mitchell <mark@codesourcery.com>
* g++.dg/abi/vbase10.C: XFAIL on arm*-*-*.
diff --git a/gcc/testsuite/g++.dg/template/crash16.C b/gcc/testsuite/g++.dg/template/crash16.C
new file mode 100644
index 00000000000..f80dd10644c
--- /dev/null
+++ b/gcc/testsuite/g++.dg/template/crash16.C
@@ -0,0 +1,21 @@
+// { dg-do compile }
+
+// Origin: Alexander Stippler <stip@mathematik.uni-ulm.de>
+// PR c++/10079
+
+template <bool> struct A {};
+
+template <typename> struct B
+{
+ enum { e };
+};
+
+template <typename T> A<(B<T>::e && 0)> foo(T) {}
+
+template <typename T> void foo(B<T>) {}
+
+void bar()
+{
+ B<int> b;
+ foo(b);
+}