This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/752: template function cannot access embedded type of parameter type
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/752: template function cannot access embedded type of parameter type
- From: rutt at chezrutt dot com
- Date: 8 Nov 2000 19:38:02 -0000
- Reply-To: rutt at chezrutt dot com
>Number: 752
>Category: c++
>Synopsis: template function cannot access embedded type of parameter type
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Nov 08 11:46:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator: John Ruttenberg
>Release: 2.95-2, 2.96
>Organization:
>Environment:
rh linux (6.2 and 7.0)
>Description:
I think the attached is correct. KCC handles it. But g++
finds a syntax error.
>How-To-Repeat:
g++ x.cxx
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="x.cxx"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="x.cxx"
I2luY2x1ZGUgPGxpc3QuaD4KI2luY2x1ZGUgPGlvc3RyZWFtLmg+Cgp0ZW1wbGF0ZSA8Y2xhc3Mg
WD4Kdm9pZCBmb28oWCYgeCkKewogIGZvciAoWDo6aXRlcmF0b3IgaXQgPSB4LmJlZ2luKCk7IGl0
ICE9IHguZW5kKCk7ICsraXQpCiAgICBjb3V0IDw8ICppdCA8PCBlbmRsOwp9CgoKbWFpbigpCnsK
ICBsaXN0PGludD4gbGk7CgogIGZvciAoaW50IGkgPSAwOyBpIDwgMTA7ICsraSkKICAgIGxpLnB1
c2hfYmFjayhpKTsKCiAgZm9vKGxpKTsKfQoKICAgIAogICAgCg==