public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/8161: Infinite loop of the compiler when compiling
@ 2002-10-07  8:26 sdementen
  0 siblings, 0 replies; 2+ messages in thread
From: sdementen @ 2002-10-07  8:26 UTC (permalink / raw)
  To: gcc-gnats

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1509 bytes --]


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: c++/8161: Infinite loop of the compiler when compiling
@ 2002-10-18 12:12 paolo
  0 siblings, 0 replies; 2+ messages in thread
From: paolo @ 2002-10-18 12:12 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, sdementen

Synopsis: Infinite loop of the compiler when compiling

State-Changed-From-To: open->analyzed
State-Changed-By: paolo
State-Changed-When: Fri Oct 18 12:12:48 2002
State-Changed-Why:
    Confirmed with current mainline and 3.2.1 pre.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8161


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-10-18 19:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-07  8:26 c++/8161: Infinite loop of the compiler when compiling sdementen
2002-10-18 12:12 paolo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).