This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/882: Segmentation fault due to syntax error
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/882: Segmentation fault due to syntax error
- From: nukije at email dot com
- Date: 25 Nov 2000 10:11:25 -0000
- Reply-To: nukije at email dot com
>Number: 882
>Category: c++
>Synopsis: Segmentation fault due to syntax error
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: wrong-code
>Submitter-Id: net
>Arrival-Date: Sat Nov 25 02:16:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator: Alexandre Gattiker
>Release: GNU C++ version 2.96 20000731
>Organization:
>Environment:
(Red Hat Linux 7.0) (i386-redhat-linux)
>Description:
Using the Perl-like do {} until () syntax instead of do{} while()
results in a segmentation fault.
test.c++: In function `int main (...)':
test.c++:2: parse error before `}'
test.c++:2: Internal error: Segmentation fault.
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
g++ test.c++
>Fix:
Replace until with while !
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="test.c++"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.c++"
dm9pZCBtYWluKCkgewoJZG8gezF9IHVudGlsICgxPT0yKTsKfQo=