This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21135] New: &a[-2] ICE at the top level
- From: "mrs at apple dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Apr 2005 23:27:41 -0000
- Subject: [Bug c++/21135] New: &a[-2] ICE at the top level
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
int a[4] = {0,1,2,3};
int *b = &a[-2];
doesn't work, it fails with:
t2.ii:1: internal compiler error: Bus error
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
This ICEes because it is going deep into expand, and there is no cfun, and no insns at that time.
This should be host/target/build independent.
radr://4093122
--
Summary: &a[-2] ICE at the top level
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mrs at apple dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: powerpc-apple-darwin8
GCC host triplet: powerpc-apple-darwin8
GCC target triplet: powerpc-apple-darwin8
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21135