This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Add testcase for ICE in assemble_integer
- From: Marek Polacek <polacek at redhat dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 12 Feb 2016 15:08:24 +0100
- Subject: [PATCH] Add testcase for ICE in assemble_integer
- Authentication-results: sourceware.org; auth=none
We've got a report that GCC is crashing when building a package on i686;
there was an ICE in assemble_integer. Turned out this ICE was already fixed
by r233216, so I reduced it and would like to add it to the testsuite.
Tested on x86_64-linux and i686-linux, ok for trunk?
2016-02-12 Marek Polacek <polacek@redhat.com>
* g++.dg/torture/init-list1.C: New.
diff --git gcc/testsuite/g++.dg/torture/init-list1.C gcc/testsuite/g++.dg/torture/init-list1.C
index e69de29..b8abf6a 100644
--- gcc/testsuite/g++.dg/torture/init-list1.C
+++ gcc/testsuite/g++.dg/torture/init-list1.C
@@ -0,0 +1,6 @@
+// { dg-do compile }
+// { dg-options "-std=c++11" }
+
+struct S {
+ long long l;
+} s {(long long) &s};
Marek