From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24083 invoked by alias); 7 Oct 2002 15:26:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 24064 invoked by uid 71); 7 Oct 2002 15:26:01 -0000 Resent-Date: 7 Oct 2002 15:26:01 -0000 Resent-Message-ID: <20021007152601.24063.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, sdementen@hotmail.com Received: (qmail 22057 invoked by uid 61); 7 Oct 2002 15:16:37 -0000 Message-Id: <20021007151637.22056.qmail@sources.redhat.com> Date: Mon, 07 Oct 2002 08:26:00 -0000 From: sdementen@hotmail.com Reply-To: sdementen@hotmail.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/8161: Infinite loop of the compiler when compiling X-SW-Source: 2002-10/txt/msg00257.txt.bz2 List-Id: >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=