The attached program should print

void func(int &, int &)
void func(int &, int &)

Instead it prints

void func(T&, T&) [with T = int]
void func(int&, int&)

This causes efficiency bugs that are very difficult to detect.


-- 
           Summary: Wrong function selected
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bagnara at cs dot unipr dot it
  GCC host triplet: x86_64-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30059

Reply via email to