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



Jason Merrill <jason at gcc dot gnu.org> changed:



           What    |Removed                     |Added

----------------------------------------------------------------------------

             Status|UNCONFIRMED                 |RESOLVED

         Resolution|                            |FIXED

   Target Milestone|---                         |4.7.0



--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2013-03-26 
18:15:52 UTC ---

We now give the correct error



*.C:13:30: error: decltype cannot resolve address of overloaded function



If you change



  decltype(&Shell<int>::getId) a;



to



  decltype(&Shell<int>::getId<>) a;



it will work.

Reply via email to