This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/77564] Code fails to link when compiled with -O0
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 12 Sep 2016 13:22:25 +0000
- Subject: [Bug c++/77564] Code fails to link when compiled with -O0
- Auto-submitted: auto-generated
- References: <bug-77564-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77564
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Right, the code is invalid. This is a FAQ.
See https://gcc.gnu.org/wiki/VerboseDiagnostics#missing_static_const_definition