This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/3626: method template lookup failure by non-type template parameters
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/3626: method template lookup failure by non-type template parameters
- From: gawrilow at math dot tu-berlin dot de
- Date: 9 Jul 2001 18:49:34 -0000
- Reply-To: gawrilow at math dot tu-berlin dot de
>Number: 3626
>Category: c++
>Synopsis: method template lookup failure by non-type template parameters
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Mon Jul 09 11:56:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Ewgenij Gawrilow
>Release: 3.0
>Organization:
>Environment:
UltraSPARC 10, Solaris 8
>Description:
The compiler can't find a method template if at least
one of its parameters is of an integral type, as illustrated
by the attached code. The lookup fails in both postfix
and infix operator notations.
>How-To-Repeat:
compile the attached code
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="error.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="error.cc"
dGVtcGxhdGUgPGJvb2wgYj4KY2xhc3MgQSB7CnB1YmxpYzoKICAgdGVtcGxhdGUgPGJvb2wgYjI+
CiAgIGJvb2wgb3BlcmF0b3I9PSAoY29uc3QgQTxiMj4mKSBjb25zdCB7IHJldHVybiB0cnVlOyB9
CgogICB0ZW1wbGF0ZSA8Ym9vbCBiMj4KICAgYm9vbCBtZXRoKGNvbnN0IEE8YjI+JikgY29uc3Qg
eyByZXR1cm4gdHJ1ZTsgfQp9OwoKYm9vbCBmKCkgewogICBBPHRydWU+IGExOwogICBBPGZhbHNl
PiBhMjsKICAgcmV0dXJuIGExPT1hMiB8fCBhMS5tZXRoKGEyKTsKfQo=