This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/71983] "error: initializer element is not constant" only with -O0
- From: "msebor at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 23 Jul 2016 19:27:30 +0000
- Subject: [Bug c/71983] "error: initializer element is not constant" only with -O0
- Auto-submitted: auto-generated
- References: <bug-71983-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71983
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2016-07-23
CC| |msebor at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
I'll confirm this bug report based on comment #1, and also in light of
enhancement requests to have GCC treat more expressions as constant (e.g, bug
69960 and bug 71713). It would make sense treat this one as a constant
expression as well. Other C implementations like Clang have done so.