This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/64852] C++ accepts invalid(?) constants only at -O0
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 29 Jan 2015 02:45:51 +0000
- Subject: [Bug c++/64852] C++ accepts invalid(?) constants only at -O0
- Auto-submitted: auto-generated
- References: <bug-64852-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64852
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
C++ has runtime initializers for global variables.
The reason why you get an error message for -O1 is due to a glibc header
changing the definition of htons between -O1 and -O0.
Not a bug.