c++/5624: Strange bug with preprocessed file containing structs
reichelt@igpm.rwth-aachen.de
reichelt@igpm.rwth-aachen.de
Thu Feb 7 11:40:00 GMT 2002
>Number: 5624
>Category: c++
>Synopsis: Strange bug with preprocessed file containing structs
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Thu Feb 07 10:46:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: reichelt@igpm.rwth-aachen.de
>Release: gcc version 3.1 20020204 (experimental)
>Organization:
>Environment:
mips-sgi-irix6.5, i686-pc-linux-gnu
>Description:
Create a file named "funny.ii" with the following contents:
------------------snip here ----------
# 1 "funny.cpp"
struct A
{
struct B { B(); };
};
static A::B b;
------------------snip here ----------
Make sure that there is no file named "funny.cpp"
and start the compiler with "g++ -c funny.ii".
Then you'll get the following ICE:
funny.cpp:6: Internal compiler error in append_random_chars, at tree.c:4484
Please submit a full bug report, [etc.]
If there exists a file "funny.cpp" (even if it's empty)
the file compiles fine.
Remark:
This bug was distilled from the file repmap.ii in PR 4286.
In repmap.ii we have A == ios_base and B == Init.
Because of this bug the original testcase in PR4286
(repmap.ii) still produces an ICE (using g++ -c repmap.ii),
although one bug (the one in the reduced test case) was
fixed and the PR was closed.
>How-To-Repeat:
g++ -c funny.ii
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list