http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53091
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-04-24
Summary|Const assignment fails in |static initializer accepted
|GCC 4.2, 4.4, 4.6, 4.7 - |by clang but not by gcc
|works fine in clang |
Ever Confirmed|0 |1
Severity|normal |enhancement
--- Comment #13 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2012-04-24
14:37:42 UTC ---
(In reply to comment #12)
> There is no requirement to accept this static initializer, but the code
> does try to be lax about constants in initializers (there is no
> requirement to reject it either) and fold them with c_fully_fold (see
> c-typeck.c:digest_init). So it may make sense to look at why this laxity
> isn't causing this code to be accepted.
So confirmed.
[email protected], I would recommend that if you are interested in this, take a more
active role. First, by finding out where and why the C FE does not accept this
code. Then posting the results of your investigation here.