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++/10111: Parse error for default template parameter


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


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