I understand that this is an issue in C because the enumerators have integer type, but in C++ they have the enumeration type, so I'm not sure why we're having trouble. Is the problem that the promotion to integer type is folded away into a new INTEGER_CST?

And on a general note, what is the opinion of the C/C++ maintainers
about tracking the original source code more faithfully than currently
done?

I would very much like to delay folding in C++ as with c_fully_fold in C; we can even delay folding constant expressions, since we already need to fold them later to handle constexpr.

Jason

Reply via email to