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
Ranjit Mathew writes:
> I am not completely sure of the mechanics of the original code
> either - the final (const) field would have been initialised by the
> "Java side" too - so why do we need to initialise it in C++? I'm
> sure I'm missing something...
I think it's because C++ has real constants that can be substituted in-line.
Andrew.