diff mbox

Add testcase for ICE in assemble_integer

Message ID 20160212140824.GM3163@redhat.com
State New
Headers show

Commit Message

Marek Polacek Feb. 12, 2016, 2:08 p.m. UTC
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.


	Marek

Comments

Bernd Schmidt Feb. 12, 2016, 3:58 p.m. UTC | #1
On 02/12/2016 03:08 PM, Marek Polacek wrote:
> 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.

Sure.


Bernd
diff mbox

Patch

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};