This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C++ PATCH: Disallow floating-point literals in integral-constantexpressions


Matt Austern wrote:

I think that the remaining action item, then, is to document this extension. Would you please document both the extension to allow floating-point literals in integral constant expressions and the extension to allow initialized static data members of floating-point type?


The documentation should presumably say that it's deprecated?

Yes.


My thinking is that we've been disallowing template parameters of floating-point type for a while now. If we really want to allow constant expressions of floating-point type forever more, we ought to also allow template parameters of floating-point type as well.

Furthemore, deprecating the extension doesn't make it impossible for us to keep it -- but it does make it easier to remove it.

--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]