This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/5476: Bug with template
- From: m dot duflot at ulg dot ac dot be
- To: gcc-gnats at gcc dot gnu dot org
- Date: 24 Jan 2002 08:05:59 -0000
- Subject: c++/5476: Bug with template
- Reply-to: m dot duflot at ulg dot ac dot be
>Number: 5476
>Category: c++
>Synopsis: Bug with template
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Thu Jan 24 00:06:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Marc Duflot
>Release: g++ 3.0.3
>Organization:
>Environment:
Suse Linux 7.3
>Description:
% g++ -c test.C
test.C:23: prototype for `void ML<Pb>::foo(typename GI<ML<Pb>::nsd>::IP&)' does not match any in class `ML<Pb>'
test.C:19: candidate is: void ML<Pb>::foo(typename GI<ML<Pb>::nsd>::IP&)
test.C:23: template definition of non-template `void ML<Pb>::foo(typename GI<ML<Pb>::nsd>::IP&)'
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/x-c++src; name="test.C"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.C"
dGVtcGxhdGUgPGludCBuc2Q+CmNsYXNzIEVsIHsKcHVibGljOgogICBlbnVtIHsgbnNkXz1uc2R9
Owp9OwoKdGVtcGxhdGUgPGludCBuc2Q+CmNsYXNzIEdJIHsKcHVibGljIDoKICAgY2xhc3MgSVAg
e2RvdWJsZSB4IFtuc2RdO307Cn07Cgp0ZW1wbGF0ZSA8Y2xhc3MgUGI+CmNsYXNzIE1MIHsKICAg
c3RhdGljIGNvbnN0IGludCBuc2QgPSBQYjo6bnNkXzsKICAgdHlwZWRlZiBHSTxuc2Q+IFRHSTsK
ICAgdHlwZWRlZiB0eXBlbmFtZSBUR0k6OklQIFRJUDsKIHB1YmxpYzoKICAgdm9pZCBmb28gKGNv
bnN0IHR5cGVuYW1lIEdJPG5zZD46OklQJiBpcCk7CiB9OwogCnRlbXBsYXRlIDxjbGFzcyBQYj4K
dm9pZCBNTDxQYj46OmZvbyAoY29uc3QgdHlwZW5hbWUgR0k8bnNkPjo6SVAmIGlwKSB7fQo=