c++/8161: Infinite loop of the compiler when compiling
sdementen@hotmail.com
sdementen@hotmail.com
Mon Oct 7 08:26:00 GMT 2002
>Number: 8161
>Category: c++
>Synopsis: Infinite loop of the compiler when compiling
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Mon Oct 07 08:26:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Sébastien de Menten
>Release: gcc version 3.2 (Mandrake Linux 9.0 3.2-1mdk)
>Organization:
>Environment:
Fresh Mandrake 9.0 installation (gcc-2.96 is also installed)
>Description:
Compilation of the file leads to
error_infinite_loop.cpp:6: parse error before `)' token
error_infinite_loop.cpp:7: missing ';' before right brace
error_infinite_loop.cpp: In constructor `foo::foo()':
error_infinite_loop.cpp:6: parse error before `;' token
and the the compiler loops infinitely (without increasing its memory usage)
>How-To-Repeat:
Compile the file with no special flags
g++ error_build_modify_expr.cpp
>Fix:
Do not define the constructor in the body of the class but outside the class.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/x-c++src; name="error_infinite_loop.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="error_infinite_loop.cpp"
I2luY2x1ZGUgPGlvc3RyZWFtPgoKY2xhc3MgZm9vIHsKcHVibGljOgogIGNvbnN0IGludCBkWzNd
OwogIGZvbygpIDogZCgoY29uc3QgaW50W10pezEsMiwzfSkgewogIH07Cn07CgppbnQgbWFpbihp
bnQgYXJnYyxjaGFyICoqYXJndikgewogIGZvbyBiOwp9Owo=
More information about the Gcc-bugs
mailing list