This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/2664: template function with reference arg fails to call overloaded op
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/2664: template function with reference arg fails to call overloaded op
- From: kosak at cs dot cmu dot edu
- Date: 27 Apr 2001 06:35:16 -0000
- Reply-To: kosak at cs dot cmu dot edu
>Number: 2664
>Category: c++
>Synopsis: template function with reference arg fails to call overloaded op
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Thu Apr 26 23:36:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Corey Kosak
>Release: 3.0 20010423 (prerelease)
>Organization:
>Environment:
System: Linux lector.home 2.2.14-5.0 #1 Sat Apr 21 01:11:29 EDT 2001 i686 unknown
Architecture: i686
<machine, os, target, libraries (multiple lines)>
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc-20010423/configure --prefix=/home/kosaklocal/gcc-20010423
>Description:
g++ issues this error message:
test.cc:11: wrong type argument to unary minus
(note that the call to func, which takes the same arguments,
succeeds)
>How-To-Repeat:
g++ test.cc
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="test.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.cc"
c3RydWN0IGNvdyB7IH07Cgpjb3cgYzsKCnZvaWQgZnVuYyAgICAgKGNvdyAmYykge30Kdm9pZCBv
cGVyYXRvci0oY293ICZjKSB7fQoKdGVtcGxhdGU8Y293ICZDPiB2b2lkIHRlc3QoKQp7CiAgZnVu
YyhDKTsgLy9PSwogIC1DOyAgICAgIC8vZmFpbHMKfQoKaW50IG1haW4oKQp7CiAgdGVzdDxjPiAo
KTsKfQo=