>Submitter-Id:  net
>Originator:    Samuel Meder <[EMAIL PROTECTED]>
>Organization:  The Debian project
>Confidential:  no
>Synopsis:      GCC 3.0.3 / 3.1 20011215 ICE (regression to gcc-2.95.3)
>Severity:      non-critical
>Priority:      low
>Category:      c
>Class:         ice-on-illegal-code
>Release:       3.0.3 (Debian GNU/Linux) and HEAD 20011215
>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 [EMAIL PROTECTED] 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:
        


Reply via email to