This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c++/397: Internal Compiler Error on return statement from within double while loop



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]