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-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.


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