[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#123687: GCC 3.0 internal compiler error



Package: gcc-3.0
Version: 1:3.0.3-0pre011209

I've hit a internal compiler error in the gcc-3.0 package. The
following code will trigger the error:

============================================

struct blah
{
    char *  foo;
    char *  bar[];
};

int main()
{
    struct blah test;

    test.bar = malloc((sizeof(char *)) * 5);
}

=============================================

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.




Reply to: