This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: cerr and NULL terminates program + string::find() weird results
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Anibal Jodorcovsky <anibal at intelerad dot com>
- Cc: libstdc++ at gcc dot gnu dot org, neelin at intelerad dot com, Kent Tse <kent at intelerad dot com>
- Date: 12 Oct 2002 20:45:16 +0200
- Subject: Re: cerr and NULL terminates program + string::find() weird results
- Organization: Integrable Solutions
- References: <002d01c2720c$1f571550$1201a8c0@jaucho>
Anibal Jodorcovsky <anibal@intelerad.com> writes:
[...]
| const char* const d = NULL;
| std::cerr << "d is " << d << std::endl;
This invokes an undefined behaviour.
-- Gaby