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

2018-02-07 Thread Serguei.Kolos at cern dot ch
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84262 --- Comment #2 from Serguei Kolos --- 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 opti

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

2018-02-07 Thread Serguei.Kolos at cern dot ch
: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: Serguei.Kolos at cern dot ch Target Milestone: --- I have noticed that my project, which is compiled and linked without errors using -O2 flag