public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/11333] New: negative indexes for array static initializers cause an internal compiler error
@ 2003-06-26 17:25 tharbaugh at lnxi dot com
2003-06-26 17:33 ` [Bug c/11333] " pinskia at physics dot uc dot edu
0 siblings, 1 reply; 2+ messages in thread
From: tharbaugh at lnxi dot com @ 2003-06-26 17:25 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11333
Summary: negative indexes for array static initializers cause an
internal compiler error
Product: gcc
Version: 3.3
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tharbaugh at lnxi dot com
CC: gcc-bugs at gcc dot gnu dot org
#define BROKEN 1
int
main( int argc, char *argv[] ) {
int ints[] = {
#if BROKEN
[-1] = 5,
#endif
[0] = 6
};
return ints[0];
}
The above was saved in a file called /tmp/foo.c
[thayne@torch ecc_new]$ gcc -v -save-temps /tmp/foo.c -o /tmp/foo
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.3 20030615 (Red Hat Linux 3.3-7)
/usr/lib/gcc-lib/i386-redhat-linux/3.3/cc1 -E -quiet -v -D__GNUC__=3
-D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=0 /tmp/foo.c foo.i
ignoring nonexistent directory "/usr/i386-redhat-linux/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/usr/lib/gcc-lib/i386-redhat-linux/3.3/include
/usr/include
End of search list.
/usr/lib/gcc-lib/i386-redhat-linux/3.3/cc1 -fpreprocessed foo.i -quiet
-dumpbase foo.c -auxbase foo -version -o foo.s
GNU C version 3.3 20030615 (Red Hat Linux 3.3-7) (i386-redhat-linux)
compiled by GNU C version 3.3 20030615 (Red Hat Linux 3.3-7).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
/tmp/foo.c: In function `main':
/tmp/foo.c:7: internal compiler error: in tree_low_cst, at tree.c:3228
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
The bug is not reproduceable, so it is likely a hardware or OS problem
Strangely, the bug is very reproduceable - contrary to the line above.
A negative index for an array static initializer should produce an error message
describing the problem - not an internal compiler error.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c/11333] negative indexes for array static initializers cause an internal compiler error
2003-06-26 17:25 [Bug c/11333] New: negative indexes for array static initializers cause an internal compiler error tharbaugh at lnxi dot com
@ 2003-06-26 17:33 ` pinskia at physics dot uc dot edu
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-06-26 17:33 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11333
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
------- Additional Comments From pinskia at physics dot uc dot edu 2003-06-26 17:33 -------
This is a dup of bug 11207 which is not fixed yet.
*** This bug has been marked as a duplicate of 11207 ***
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-06-26 17:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-26 17:25 [Bug c/11333] New: negative indexes for array static initializers cause an internal compiler error tharbaugh at lnxi dot com
2003-06-26 17:33 ` [Bug c/11333] " pinskia at physics dot uc dot edu
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).