aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2004-12-27 16:13:45 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2004-12-27 16:13:45 +0000
commit64092f8bc204184c4a78740dab1625753d61318e (patch)
treef6c59015a576f8b3a18df76d5fda148fd737722c /gcc
parent6ec215790a176bdfe08e58b32b849e9614a332d6 (diff)
downloadgcc-64092f8bc204184c4a78740dab1625753d61318e.zip
gcc-64092f8bc204184c4a78740dab1625753d61318e.tar.gz
gcc-64092f8bc204184c4a78740dab1625753d61318e.tar.bz2
re PR c++/19148 (ICE: gimplification failed)
PR c++/19148 * g++.dg/expr/cond7.C: New test. From-SVN: r92641
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/expr/cond7.C12
2 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 266851f..d6366a4 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2004-12-27 Mark Mitchell <mark@codesourcery.com>
+
+ PR c++/19148
+ * g++.dg/expr/cond7.C: New test.
+
2004-12-27 Paul Brook <paul@codesourcery.com>
* gfortran.dg/g77/select_no_compile.f: Remove.
diff --git a/gcc/testsuite/g++.dg/expr/cond7.C b/gcc/testsuite/g++.dg/expr/cond7.C
new file mode 100644
index 0000000..05e8eab
--- /dev/null
+++ b/gcc/testsuite/g++.dg/expr/cond7.C
@@ -0,0 +1,12 @@
+// PR c++/19148
+
+struct QChar {
+ QChar (char c);
+ QChar (const QChar &);
+ unsigned short ucs;
+};
+
+void f(QChar *uc, unsigned short ch, QChar replacement)
+{
+ *uc++ = ((ch) ? QChar((1)) : replacement);
+}