[Bug c++/63267] Static member of template class is not constructed before it's used.

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63267 --- Comment #2 from Andrew Pinski --- ICC and GCC produce the same result while clang produces: Output constructed do it a: 100 Note I noticed if I used std::cout, I get a crash with clang even.

[Bug c++/63267] Static member of template class is not constructed before it's used.

2014-09-17 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63267 Paolo Carlini changed: What|Removed |Added Severity|major |normal

[Bug c++/63267] Static member of template class is not constructed before it's used.

2014-09-15 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63267 --- Comment #1 from Jonathan Wakely --- I think GCC's behaviour is allowed by the standard. You do not explicitly instantiate the static member 'Test::out', so the compiler provides an implicit instantiation which is placed at the end of the file