http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48912
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.6.1
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-06
13:46:36 UTC ---
Yes, this will be fixed in 4.6.1 (by
http://gcc.gnu.org/ml/gcc-patches/2011-03/msg00848.html)
The function definition is ill-formed, no diagnostic required, because there is
no set of arguments that will make it a constant expression. But I don't think
it's worth trying hard to diagnose it at the point of definition since we'll
complain when it's used.