This is the mail archive of the gcc-bugs@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]

[Bug c/52283] "error: case label does not reduce to an integer constant" for constant folded cast expr


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52283

--- Comment #8 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> 2012-02-16 20:09:43 UTC ---
(In reply to comment #7)
> (In reply to comment #6)
> > Is this folding actually necessary for anything beyond diagnostics? I thought
> > it was agreed that folding in the FEs was EVIL and we should stop doing it.
> 
> Yes, in various places some folding is needed for language semantics, in other
> places for various extensions.  The C FE does far less folding then it did.

Talking about this particular case (folding in build_c_cast), is this actually
needed here? Couldn't GCC just delay folding until actually needed?


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