http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51895
Bug #: 51895 Summary: [4.7 Regression] ICE in simplify_subreg Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: middle-end AssignedTo: unassig...@gcc.gnu.org ReportedBy: ja...@gcc.gnu.org CC: berg...@gcc.gnu.org Target: powerpc64-linux struct S { long a; char b; S () : a (0), b (0) {} bool baz (); }; __attribute__((noinline)) static bool bar (S x, S y) { y = x; return y.baz (); } bool foo (S x) { S y; return bar (x, y); } ICEs at -O2 -m64 with: rh782868.ii: In function ‘bool foo(S)’: rh782868.ii:20:19: internal compiler error: in simplify_subreg, at simplify-rtx.c:5420 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions.