cerr and NULL terminates program + string::find() weird results

Gabriel Dos Reis gdr@integrable-solutions.net
Sat Oct 12 11:45:00 GMT 2002


Anibal Jodorcovsky <anibal@intelerad.com> writes:

[...]

|     const char* const d  = NULL;

|     std::cerr << "d  is " << d << std::endl;

This invokes an undefined behaviour.

-- Gaby



More information about the Libstdc++ mailing list