Hello Could GCC's STL implementation add nullptr attribute to prevent code like this compiling? g++ -Wall -o string string.cpp std::string c(nullptr); At least GCC STL does reject it at runtime: terminate called after throwing an instance of 'std::logic_error' what(): basic_string: construction from null is not valid Aborted (core dumped) Note, my code isn't like this, it is just an example to suggest adding the nullptr attribute, as its clearly already rejected at runtime. Regards Jonny