#include <string>

int main()
{
	char *nil = 0;
	std::string s(nil);
	return 0;
}

/* Dies with
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_S_construct NULL not valid
Aborted
*/

