[Bug c++/47999] [C++0x] auto type deduction works incorrectly in a function template

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Mar 8 15:14:00 GMT 2011


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

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-03-08 15:14:02 UTC ---
Created attachment 23583
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23583
Fix

Here's a patch that fixes the bug and passes regression testing.  I don't plan
to put it in for 4.6.0 as I'm concerned about possible side-effects; I seem to
remember trying to do exactly this once before and it causing problems.  I'll
put it in for 4.7 once 4.6 branches, and then perhaps into 4.6.1.



More information about the Gcc-bugs mailing list