This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/84262] Header file initialization of a static constant causes linker error if code is compiled without optimization
- From: "Serguei.Kolos at cern dot ch" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 07 Feb 2018 11:57:53 +0000
- Subject: [Bug c++/84262] Header file initialization of a static constant causes linker error if code is compiled without optimization
- Auto-submitted: auto-generated
- References: <bug-84262-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84262
--- Comment #2 from Serguei Kolos <Serguei.Kolos at cern dot ch> ---
If you read my original message through the end you should have noticed that I
have admitted that already. My question was different:
Is it normal that the same code (seemingly bogus) compiles fine with optimize
tags and gives errors without them?