http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47014
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |jason at gcc dot gnu.org
Resolution| |FIXED
Target Milestone|--- |4.6.1
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-25
15:57:26 UTC ---
In 4.6.1 gcc will give the error,
wa.C:6:21: error: ‘<lambda()>::operator void (*)()() const’ is not ‘constexpr’
wa.C:6:22: error: template argument 1 is invalid
wa.C:6:31: error: invalid type in declaration before ‘;’ token
This seems like an oversight in C++0x, I'll raise it with the committee.