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/5141: GCC 3.0.3 / 3.1 20011215 ICE (regression to gcc-2.95.3)



>Number:         5141
>Category:       c
>Synopsis:       GCC 3.0.3 / 3.1 20011215 ICE (regression to gcc-2.95.3)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 17 14:46:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Samuel Meder <meder@mcs.anl.gov>
>Release:        3.0.3 (Debian GNU/Linux) and HEAD 20011215
>Organization:
The Debian project
>Environment:
System: Debian GNU/Linux (testing/unstable)
Architecture: i686
host: i386-linux
build: i386-linux
target: i386-linux
configured with: ../src/configure -v --enable-languages=c,c++,java,f77,proto,objc --prefix=/usr --infodir=/share/info --mandir=/share/man --enable-shared --with-gnu-as --with-gnu-ld --with-system-zlib --enable-long-long --enable-nls --without-included-gettext --disable-checking --enable-threads=posix --enable-java-gc=boehm --with-cpp-install-dir=bin --enable-objc-gc i386-linux
>Description:
[ Reported to the Debian BTS as report #123687.
  Please CC 123687-quiet@bugs.debian.org on replies.
  Log of report can be found at http://bugs.debian.org/123687 ]
 	

struct blah 
{                                                                         
    char *  foo;     
    char *  bar[]; 
};                                                      
 
int main()                                                      
{ 
    struct blah test;                                        
                       
    test.bar = malloc((sizeof(char *)) * 5); 
}
>How-To-Repeat:
gcc test.c 
test.c: In function `main': 
test.c:12: 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. 

HEAD:
$ gcc test.c
test.c: In function `main':
test.c:11: Internal compiler error in incomplete_type_error, at c-typeck.c:159
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

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