This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/84262] Header file initialization of a static constant causes linker error if code is compiled without optimization


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84262

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Serguei Kolos from comment #2)
> 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?

That question might have been more appropriate on the gcc-help mailing list,
not as a bug report.

Anyway, as I said, the answer is yes. It's expected.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]