c++/882: Segmentation fault due to syntax error

nukije@email.com nukije@email.com
Sat Nov 25 02:16:00 GMT 2000


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


More information about the Gcc-bugs mailing list