This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20173] New: Wrong template function specialization chosen
- From: "sstrasser at systemhaus-gruppe dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Feb 2005 17:13:37 -0000
- Subject: [Bug c++/20173] New: Wrong template function specialization chosen
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
attaching testcase.
result should be '1', but is '2', an int is matched to a pointer.
(and the pointer has the value of the integer in the function)
is known to fail for 3.3.5 and 3.4.4.
I can't test with 4.0 atm but I think it also fails because I came across this
by a strange internal tree generated by 4.0.
--
Summary: Wrong template function specialization chosen
Product: gcc
Version: 3.4.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: sstrasser at systemhaus-gruppe dot de
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20173