From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29010 invoked by alias); 28 Jan 2003 11:56: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 28990 invoked by uid 71); 28 Jan 2003 11:56:00 -0000 Resent-Date: 28 Jan 2003 11:56:00 -0000 Resent-Message-ID: <20030128115600.28989.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, t-gcc@snowelm.com Received: (qmail 23480 invoked by uid 48); 28 Jan 2003 11:47:21 -0000 Message-Id: <20030128114721.23479.qmail@sources.redhat.com> Date: Tue, 28 Jan 2003 11:56:00 -0000 From: t-gcc@snowelm.com Reply-To: t-gcc@snowelm.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/9474: GCC freezes in compiling a weird code mixing and X-SW-Source: 2003-01/txt/msg01578.txt.bz2 List-Id: >Number: 9474 >Category: c++ >Synopsis: GCC freezes in compiling a weird code mixing and >Confidential: no >Severity: non-critical >Priority: low >Responsible: unassigned >State: open >Class: ice-on-illegal-code >Submitter-Id: net >Arrival-Date: Tue Jan 28 11:56:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: t-gcc@snowelm.com >Release: gcc version 3.2.2 20030109 (Debian prerelease) >Organization: >Environment: Debian GNU/Linux with kernel 2.4.20 $ gcc -v Reading specs from /usr/lib/gcc-lib/i386-linux/3.2.2/specs Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,proto,pascal,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.2 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-java-gc=boehm --enable-objc-gc i386-linux Thread model: posix gcc version 3.2.2 20030109 (Debian prerelease) >Description: When I try to compile the following C++ source code, cc1plus never finishes and runs forever. ------------------ temp.cc #include typedef std::istream istream; #include ------------------ temp.cc (end) Of course the source is weird, but gcc should report some error and exit. I ran into this problem when managing a C++ code using flex 2.5.4a. The attached to the latest flex source code still uses , but I want to switch ... >How-To-Repeat: $ cat temp.cc #include typedef std::istream istream; #include $ g++ temp.cc In file included from /usr/include/c++/3.2/backward/iostream.h:31, from temp.cc:3: /usr/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the header for the header for C++ includes, or instead of the deprecated header . To disable this warning use -Wno-deprecated. ... compiles forever ... >Fix: Avoid using In my case, it requires rewriting on ... >Release-Note: >Audit-Trail: >Unformatted: