public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/5623: GCC 3.0.3 crashes when assigning pointer to an array of undefined size which is member of a struct
@ 2002-02-10 18:31 rth
  0 siblings, 0 replies; 2+ messages in thread
From: rth @ 2002-02-10 18:31 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, roeder, rth

Synopsis: GCC 3.0.3 crashes when assigning pointer to an array of undefined size which is member of a struct

Responsible-Changed-From-To: unassigned->rth
Responsible-Changed-By: rth
Responsible-Changed-When: Sun Feb 10 18:31:37 2002
Responsible-Changed-Why:
    Mine.
State-Changed-From-To: open->closed
State-Changed-By: rth
State-Changed-When: Sun Feb 10 18:31:37 2002
State-Changed-Why:
    http://gcc.gnu.org/ml/gcc-patches/2002-02/msg00692.html

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5623


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

* c/5623: GCC 3.0.3 crashes when assigning pointer to an array of undefined size which is member of a struct
@ 2002-02-07  9:06 Ulrich Roeder
  0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Roeder @ 2002-02-07  9:06 UTC (permalink / raw)
  To: gcc-gnats


>Number:         5623
>Category:       c
>Synopsis:       GCC 3.0.3 crashes when assigning pointer to an array of undefined size which is member of a struct
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 07 09:06:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Ulrich Roeder
>Release:        3.0.3
>Organization:
>Environment:
System: Linux dreamland 2.4.17 #1 Mon Jan 28 00:39:20 CET 2002 i586 unknown
Architecture: i586

	
host: i586-pc-linux-gnu
build: i586-pc-linux-gnu
target: i586-pc-linux-gnu
configured with: ../gcc-3.0.3/configure --prefix=/opt/gcc-3.0.3
>Description:
When trying to compile the little test-program, gcc says:
Reading specs from /opt/gcc-3.0.3/lib/gcc-lib/i586-pc-linux-gnu/3.0.3/specs
Configured with: ../gcc-3.0.3/configure --prefix=/opt/gcc-3.0.3
Thread model: single
gcc version 3.0.3
 /opt/gcc-3.0.3/lib/gcc-lib/i586-pc-linux-gnu/3.0.3/cc1 -lang-c -v -iprefix /usr/bin/../lib/gcc-lib/i586-pc-linux-gnu/3.0.3/ -D__GNUC__=3 -D__GNUC_MINOR__=0 -D__GNUC_PATCHLEVEL__=3 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__NO_INLINE__ -D__STDC_HOSTED__=1 -Wall -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i586__ -D__tune_pentium__ test.c -quiet -dumpbase test.c -Wall -version -o /tmp/ccFAYR0e.s
GNU CPP version 3.0.3 (cpplib) (i386 Linux/ELF)
GNU C version 3.0.3 (i586-pc-linux-gnu)
        compiled by GNU C version 3.0.3.
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /opt/gcc-3.0.3/lib/gcc-lib/i586-pc-linux-gnu/3.0.3/include
 /usr/include
End of search list.
test.c: In function `main':
test.c:10: Internal compiler error in incomplete_type_error, at c-typeck.c:157
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
	
>How-To-Repeat:
typedef struct {
   int   number;
   char  array[];
} blah_t;

int main()
{
   char *string = "hello";
   blah_t b;
   b.array = string; /* gcc ice's when typechecking this assignment */
   return 0;
}
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2002-02-11  2:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-10 18:31 c/5623: GCC 3.0.3 crashes when assigning pointer to an array of undefined size which is member of a struct rth
  -- strict thread matches above, loose matches on Subject: below --
2002-02-07  9:06 Ulrich Roeder

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).