[Bug c++/51157] [C++0x] decltype/typeof of template member with default template argument confuses g++
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Mar 26 18:16:00 GMT 2013
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.
More information about the Gcc-bugs
mailing list