This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]