You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
enum E { l = -1, z = 0, g = 1 };
int foo(void);
enum E foo(void) { return z; }
If the implementation type of enum E is not int, we will correctly emit an error (e.g. -fshort-enums).
It would be desirable to emit a warning in this case, because it is probably a mistake and definitely a portability error.
The text was updated successfully, but these errors were encountered:
For a testcase such as
If the implementation type of
enum Eis notint, we will correctly emit an error (e.g. -fshort-enums).It would be desirable to emit a warning in this case, because it is probably a mistake and definitely a portability error.
The text was updated successfully, but these errors were encountered: