//file1.cpp
extern const char* foo;
std::string bar = foo;
//file2.cpp
const char* foo = "foo";
Is bar guaranteed by the standard to be initialized to "foo"
? Or could it be initialized before foo
gets set and segfault in the constructor i.e. a case of SIOF?