C++ PATCH: Disallow floating-point literals in integral-constant expressions

Gabriel Dos Reis gdr@integrable-solutions.net
Tue Feb 1 02:45:00 GMT 2005


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



More information about the Libstdc++ mailing list