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: Patch for PR 14635 (regression: nan not in C90)


On Fri, 19 Mar 2004, Joseph S. Myers wrote:
> But this is another simple regression bug.  I've now reported it as
> middle-end/14649.  Evaluated function calls are not permitted in constant
> expressions (even as an extension).  There should only ever be exceptions
> for those __builtin_ cases specifically documented as such, such as
> __builtin_constant_p and __builtin_nan.

This is not a middle-end bug!  There are some languages that allow
function calls in global variable initializers, and permit their
optimization by evaluating them at run-time.  C++ for example.
Please change the bugzilla PR to c/14649.

Roger
--


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