This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/10762: parser failure on illegal templated type declared with 'using'
- From: oldham at codesourcery dot com
- To: gcc-gnats at gcc dot gnu dot org
- Cc: mark at codesourcery dot com
- Date: 13 May 2003 01:57:30 -0000
- Subject: c++/10762: parser failure on illegal templated type declared with 'using'
- Reply-to: oldham at codesourcery dot com
>Number: 10762
>Category: c++
>Synopsis: parser failure on illegal templated type declared with 'using'
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Tue May 13 02:06:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Jeffrey D. Oldham
>Release: development
>Organization:
>Environment:
i686-pc-linux-gnu
>Description:
goo.cc: In function `int main()':
goo.cc:7: internal compiler error: in cp_parser_lookup_name, at cp/parser.c:
13222
Please submit a full bug report,
The code is illegal because 'template-id's are not permitted in using declarations. The parser does not catch this until this illegal type is used.
>How-To-Repeat:
g++ goo.cc
>Fix:
unknown
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="goo.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="goo.cc"
bmFtZXNwYWNlIE4gewogIHRlbXBsYXRlIDx0eXBlbmFtZSBUPgogIHN0cnVjdCBmb28ge307Cn0K
CmludCBtYWluKCkgewogIHVzaW5nIE46OmZvbzxkb3VibGU+CgogIGZvbzxkb3VibGU+IGM7Cgog
IHJldHVybiAwOwp9Cg==