public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/21135] New: &a[-2] ICE at the top level
@ 2005-04-20 23:27 mrs at apple dot com
  2005-04-20 23:46 ` [Bug c++/21135] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: mrs at apple dot com @ 2005-04-20 23:27 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2005-09-10  1:49 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-20 23:27 [Bug c++/21135] New: &a[-2] ICE at the top level mrs at apple dot com
2005-04-20 23:46 ` [Bug c++/21135] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-05-30 17:50 ` mmitchel at gcc dot gnu dot org
2005-05-30 18:37 ` kenner at vlsi1 dot ultra dot nyu dot edu
2005-06-01  0:17 ` pinskia at gcc dot gnu dot org
2005-07-06 17:04 ` mmitchel at gcc dot gnu dot org
2005-08-06 13:32 ` pinskia at gcc dot gnu dot org
2005-08-25 22:58 ` pinskia at gcc dot gnu dot org
2005-08-26  3:52 ` pinskia at gcc dot gnu dot org
2005-09-09  3:14 ` [Bug c++/21135] [4.0 " pinskia at gcc dot gnu dot org
2005-09-10  1:03 ` cvs-commit at gcc dot gnu dot org
2005-09-10  1:49 ` pinskia at gcc dot gnu dot org
2005-09-10  1:49 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).