This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Anibal Jodorcovsky <anibal@intelerad.com> writes:

[...]

|     const char* const d  = NULL;

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

This invokes an undefined behaviour.

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]