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.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63267
Paolo Carlini changed:
What|Removed |Added
Severity|major |normal
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