This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c++/397: Internal Compiler Error on return statement from within double while loop
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/397: Internal Compiler Error on return statement from within double while loop
- From: wwixted1 at san dot rr dot com
- Date: 10 Jul 2000 19:50:08 -0000
- Reply-To: wwixted1 at san dot rr dot com
- Resent-Cc: gcc-prs at gcc dot gnu dot org, jason at gcc dot gnu dot org
- Resent-Reply-To: gcc-gnats@gcc.gnu.org, wwixted1@san.rr.com
>Number: 397
>Category: c++
>Synopsis: Internal Compiler Error on return statement from within double while loop
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jul 10 12:56:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Bill Wixted
>Release: 2.96 of GCC
>Organization:
>Environment:
Red Hat Linux 6.2
>Description:
Here's the command line and resulting error message
g++ -fpic -DLINUX -D_REENTRANT -c -O -DXML_USE_NATIVE_TRANSCODER -DXML_USE_INMEM_MESSAGELOADER -I/tmp/xerces-c-src_1_2_0/include -o /tmp/xerces-c-src_1_2_0/obj/LINUX/XMLScanner.o XMLScanner.cpp
XMLScanner.cpp: In method `void XMLScanner::scanProlog ()':
XMLScanner.cpp:2023: Internal compiler error in `scan_region', at
except.c:2808
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make: *** [XMLScanner.o] Error 1
This file is from the Xerces V. 1.2.0 distribution. Full path is /xerces-c-src_1_2_0/src/internal
I've attached the .cpp and .ii files
>How-To-Repeat:
The problem appears to be with line 1922 which is an if statement that returns out of a double while loop. As a workaround, i changed the return to a "goto myexit" and it compiled.
The download for Xerces I used was at http://xml.apache.org/dist/xerces-c/stable/Xerces-C-src_1_2_0a.tar.gz
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: