[Bug c/66618] Failure to diagnose non-constant initializer for static object with -O1

2023-05-22 Thread alexhenrie24 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66618 --- Comment #9 from Alex Henrie --- (In reply to Andrew Pinski from comment #7) > (In reply to Alex Henrie from comment #6) > > This wasn't fixed properly, or it was broken again before the release of GCC > > 8.1: In GCC 8.1 and later no warning

[Bug c/66618] Failure to diagnose non-constant initializer for static object with -O1

2023-05-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66618 --- Comment #8 from Andrew Pinski --- (In reply to Andrew Pinski from comment #7) > (In reply to Alex Henrie from comment #6) > > This wasn't fixed properly, or it was broken again before the release of GCC > > 8.1: In GCC 8.1 and later no

[Bug c/66618] Failure to diagnose non-constant initializer for static object with -O1

2023-05-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66618 --- Comment #7 from Andrew Pinski --- (In reply to Alex Henrie from comment #6) > This wasn't fixed properly, or it was broken again before the release of GCC > 8.1: In GCC 8.1 and later no warning at all is issued for the example > program,

[Bug c/66618] Failure to diagnose non-constant initializer for static object with -O1

2023-05-22 Thread alexhenrie24 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66618 Alex Henrie changed: What|Removed |Added CC||alexhenrie24 at gmail dot com --- Comment

[Bug c/66618] Failure to diagnose non-constant initializer for static object with -O1

2017-12-01 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66618 Jakub Jelinek changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Bug c/66618] Failure to diagnose non-constant initializer for static object with -O1

2017-11-19 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66618 --- Comment #4 from Jakub Jelinek --- Author: jakub Date: Sun Nov 19 17:17:01 2017 New Revision: 254930 URL: https://gcc.gnu.org/viewcvs?rev=254930=gcc=rev Log: PR c/66618 PR c/69960 c-family/ * c-common.h

[Bug c/66618] Failure to diagnose non-constant initializer for static object with -O1

2015-06-30 Thread Keith.S.Thompson at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66618 --- Comment #3 from Keith Thompson Keith.S.Thompson at gmail dot com --- It would be easier to argue that gcc accepts other forms of constant expressions if (a) those other forms were documented and (b) they were accepted at all optimization

[Bug c/66618] Failure to diagnose non-constant initializer for static object with -O1

2015-06-22 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66618 Marek Polacek mpolacek at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW Last

[Bug c/66618] Failure to diagnose non-constant initializer for static object with -O1

2015-06-22 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66618 --- Comment #2 from joseph at codesourcery dot com joseph at codesourcery dot com --- Although diagnosing this probably makes sense, it's not required by the standard (An implementation may accept other forms of constant expressions. - and