KarstenH
KarstenH
In C++17 mode it seems clang is right and gcc is wrong: https://stackoverflow.com/questions/50638053/constexpr-static-data-member-without-initializer As a result I close this issue.
mentioned in issue llvm/llvm-bugzilla-archive#41409
mentioned in issue llvm/llvm-bugzilla-archive#38171
> +Jennifer Yu, who is working on issue 40323, which is pretty related. > > > > I'm curious (and a little frightened): does that imply that "magic statics" >...
> > > I just want to note that the destructor is called as often as the > > constructor (or more general, uninitialization as often as initialization). > >...
> I think the way we avoid double-initialization on Itanium is through the > guard variable used for thread-safe initialization of static locals. > > But when targeting win32 there...
> Hans or I can take a look at this sometime in the next two weeks. > > Somehow this bug has an empty cc list, so it probably never...
Clang/LLVM 7 still has this bug (with both link.exe and lld-link.exe). But "only" in release build. Debug build is as expected.
Please see also bug 41226 for an even simpler example.