This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH: Disallow floating-point literals in integral-constant expressions
Mark Mitchell <mark@codesourcery.com> writes:
[...]
| It is not true that if GCC X accepted a piece of code, but GCC X + 1
| does not, then we have removed a feature and must deprecate, etc.
| There is nothing wrong with diagnosing invalid code, unless the
| invalid code was part of an intentional (and usually documented) GNU
| extension. Other C++ compilers (like EDG) do the same thing: the
| guarantee from release-to-release is that documented extensions and
| conforming code will continue to work, not that all bugs will go
| through the deprecation cycle.
As I facetiously pointed out on comp.lang.c++.moderated, maybe some
GCC users regard bug fixes as extensions that have been definitely
turned off; as such they might wish deprecation cycle ;-)
-- Gaby