http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46377
Summary: [4.6 regression] incorrect scalarization (3) Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassig...@gcc.gnu.org ReportedBy: ebotca...@gcc.gnu.org The fix for PR tree-opt/44972 has introduced regressions in Ada, specifically: (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks, checks for return values of build_ref_for_offset. This is a third example, potentially a duplicate of PR tree-opt/46351, but it can be reproduced on 32-bit targets: e...@atlantis:~/build/gcc/native32> gcc/xgcc -Bgcc -S -O opt11.adb +===========================GNAT BUG DETECTED==============================+ | 4.6.0 20101105 (experimental) [trunk revision 166350] (i586-suse-linux-gnu) GCC error:| | in build_ref_for_offset, at tree-sra.c:1345 | | Error detected around opt11.adb:12:1 The testcase is suitable for addition to the gnat.dg testsuite.