This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Add testcase for ICE in assemble_integer


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]