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