Summary: | compile-time assertions no longer usable: error: variably modified ‘ari_sign_32_bit_and_wrap’ at file scope | ||
---|---|---|---|
Product: | gcc | Reporter: | Thorsten Glaser <tg> |
Component: | c | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | Keywords: | diagnostic |
Priority: | P3 | ||
Version: | 4.8.0 | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Known to work: | ||
Known to fail: | Last reconfirmed: |
Description
Thorsten Glaser
2012-10-21 17:37:18 UTC
The C standard requirements that certain source code has certain semantics (such as, in this case, overflows making something not an integer constant expression and so an array a VLA) are unchanged by -fwrapv; that simply concerns what happens for certain code that under standard C would be undefined at runtime. The diagnostic is correct and probably occurs as a result of fixes for various internal compiler errors relating to expressions with integer operands that are not integer constant expressions. However, it might be possible to downgrade it to a pedwarn the way it is already downgraded for some other expressions folding to an integer constant. *** Bug 260998 has been marked as a duplicate of this bug. *** Seen from the domain http://volichat.com Page where seen: http://volichat.com/adult-chat-rooms Marked for reference. Resolved as fixed @bugzilla. |