>Number: 10853
>Category: c++
>Synopsis: Parse internal error on ambiguous syntax.
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon May 19 07:56:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: [email protected]
>Release: 3.2
>Organization:
>Environment:
i486-suse-linux
>Description:
Small attached file gives internal compiler error (new in 3.2):
ambigsyntaxcrash.cpp: In function `void func()':
ambigsyntaxcrash.cpp:12: type specifier omitted for parameter `
Internal compiler error: Error reporting routines re-entered.
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
gcc ambigsyntaxcrash.cpp
>Fix:
Disambiguate syntax (eg. "int(d)" becomes "(int)(d)").
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/x-c++src; name="ambigsyntaxcrash.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="ambigsyntaxcrash.cpp"
Y2xhc3MgVHlwZSB7CnB1YmxpYzoKICAgIFR5cGUoaW50LGludCk7Cn07Cgp2b2lkIGZ1bmMoKQp7
CiAgICBkb3VibGUgZDsKICAgIGludCBpKCk7CgogICAgLy8gT0sgdG8gZ2V0IGNvbmZ1c2VkICg/
KSwgbm90IE9LIHRvICJpbnRlcm5hbCBjb21waWxlciBlcnJvciIKICAgIFR5cGUgdmFyKChpbnQp
KGQpLCBpKCkpOwp9Cg==
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.