public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/11231] New: undefined array size inside struct  cause segfault with -g
@ 2003-06-18  0:54 eranian at hpl dot hp dot com
  2003-06-23  1:39 ` [Bug c/11231] [3.4 regression] " pinskia at physics dot uc dot edu
                   ` (19 more replies)
  0 siblings, 20 replies; 21+ messages in thread
From: eranian at hpl dot hp dot com @ 2003-06-18  0:54 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=11231

           Summary: undefined array size inside struct  cause segfault with
                    -g
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: eranian@hpl.hp.com
                CC: gcc-bugs@gcc.gnu.org
 GCC build triplet: gcc version 3.4 20030507 (experimental)
  GCC host triplet: ia64-hp-linux
GCC target triplet: ia64-hp-linux

If you compile the following code sequence as follows:

/opt/gcc-pre3.4/bin/gcc -Wall -c -O2 test.c -g
test.c:2: error: `HASH_SIZE' undeclared here (not in a function)
test.c:3: internal compiler error: Segmentation fault
Please submit a full bug report,

% cat test.c
typedef struct {
	int fd_hash[HASH_SIZE];
} pfmon_task_worker_t;


If you drop -g, it works. If the array is declared outside of the struct
you get the expected error message.


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

end of thread, other threads:[~2004-03-23  5:37 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-18  0:54 [Bug c/11231] New: undefined array size inside struct cause segfault with -g eranian at hpl dot hp dot com
2003-06-23  1:39 ` [Bug c/11231] [3.4 regression] " pinskia at physics dot uc dot edu
2003-07-01  0:03 ` [Bug debug/11231] [3.3/3.4 " pinskia at physics dot uc dot edu
2003-07-11 23:00 ` mmitchel at gcc dot gnu dot org
2003-07-23 19:54 ` pinskia at physics dot uc dot edu
2003-08-03 17:10 ` pinskia at physics dot uc dot edu
2003-10-16  9:40 ` mmitchel at gcc dot gnu dot org
2003-12-21 20:20 ` gdr at gcc dot gnu dot org
2003-12-23 11:49 ` pinskia at gcc dot gnu dot org
2003-12-23 19:25 ` pinskia at gcc dot gnu dot org
2003-12-23 19:35 ` pinskia at gcc dot gnu dot org
2003-12-24 19:31 ` pinskia at gcc dot gnu dot org
2004-01-10  5:32 ` cvs-commit at gcc dot gnu dot org
2004-01-10  5:33 ` pinskia at gcc dot gnu dot org
2004-01-10 16:06 ` gdr at integrable-solutions dot net
2004-01-10 16:16 ` pinskia at gcc dot gnu dot org
2004-01-27 13:14 ` cvs-commit at gcc dot gnu dot org
2004-03-15 17:06 ` reichelt at gcc dot gnu dot org
2004-03-15 17:16 ` [Bug debug/11231] [3.3 " pinskia at gcc dot gnu dot org
2004-03-23  5:25 ` cvs-commit at gcc dot gnu dot org
2004-03-23  5:37 ` 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).