This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/10111: Parse error for default template parameter
- From: philippeb at videotron dot ca
- To: gcc-gnats at gcc dot gnu dot org
- Date: 16 Mar 2003 16:08:26 -0000
- Subject: c++/10111: Parse error for default template parameter
- Reply-to: philippeb at videotron dot ca
>Number: 10111
>Category: c++
>Synopsis: Parse error for default template parameter
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Mar 16 16:16:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: gcc
>Release: 3.0.4
>Organization:
>Environment:
Debian GNU / Linux
>Description:
The default parameter of template type is generating a parse error.
>How-To-Repeat:
>Fix:
Write seperate member function with no default argument of this type.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/x-c++src; name="ice.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="ice.cpp"
I2luY2x1ZGUgPGlvc3RyZWFtPgoKCnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgoKdGVtcGxhdGUgPGNs
YXNzIFQsIGNsYXNzIFU+CglzdHJ1Y3QgdnQKCXsKCQlzdGF0aWMgaW50IHZhbHVlOwoJfTsKCnRl
bXBsYXRlIDxjbGFzcyBULCBjbGFzcyBVPgoJaW50IHZ0PFQsIFU+Ojp2YWx1ZTsKCgpzdHJ1Y3Qg
QQp7CglBKGludCAqIGFfcCA9ICYgdHlwZW5hbWUgdnQ8aW50LCBpbnQ+Ojp2YWx1ZSkge30KfTsK
CgppbnQgbWFpbigpCnsKCUEgYTsKfQo=