aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorRoger Sayle <roger@eyesopen.com>2005-01-10 23:55:33 +0000
committerRoger Sayle <sayle@gcc.gnu.org>2005-01-10 23:55:33 +0000
commit18d002058ed0df083dc7cfa05dd3edd4849467f9 (patch)
tree869cc91b1972ffac3cf80eb5fab7a17adaa61084 /gcc/testsuite
parent316e72f2dd7293b52b55ac420529480538f07cf6 (diff)
downloadgcc-18d002058ed0df083dc7cfa05dd3edd4849467f9.zip
gcc-18d002058ed0df083dc7cfa05dd3edd4849467f9.tar.gz
gcc-18d002058ed0df083dc7cfa05dd3edd4849467f9.tar.bz2
re PR c++/19355 (ICE: tree check at c-common.c:2332)
PR c++/19355 * c-common.c (c_common_truthvalue_conversion): TRUTH_NOT_EXPR is a unary operator and can't be treated as a binary/comparison operator. * g++.dg/expr/pr19355-1.C: New test case. From-SVN: r93159
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/expr/pr19355-1.C11
2 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 90b149d..1bfdfb8 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2005-01-10 Roger Sayle <roger@eyesopen.com>
+
+ PR c++/19355
+ * g++.dg/expr/pr19355-1.C: New test case.
+
2005-01-10 Laurent GUERBY <laurent@guerby.net>
* ada/acats/tests/c4/c456001.a: New from ACATS 2.5L
diff --git a/gcc/testsuite/g++.dg/expr/pr19355-1.C b/gcc/testsuite/g++.dg/expr/pr19355-1.C
new file mode 100644
index 0000000..ce11b81
--- /dev/null
+++ b/gcc/testsuite/g++.dg/expr/pr19355-1.C
@@ -0,0 +1,11 @@
+// PR c++/19355
+// { dg-do compile }
+
+typedef bool Boolean;
+extern Boolean is_nil ();
+void f(void)
+{
+ unsigned int ilen;
+ if(!((ilen > 0 ? !is_nil () : 1))) {}
+}
+