This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

c++/10762: parser failure on illegal templated type declared with 'using'


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


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