By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,159 Members | 913 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,159 IT Pros & Developers. It's quick & easy.

Q: Reading indeterminate pointer -> Ref to Std?

P: n/a
Hi,

in a post from 1995 ('why pass references?') in this group, Steve
Clamage said reading the value of an indeterminate pointer (no
dereferencing taking place) is undefined behavior. While I am in no
doubt about this, I could not find it in the Standard. Apart from the
fact that I did not know where to look, the search function did not turn
up anything useful. Can somebody please provide a page/paragraph number?

Thanks!
--
jb

(reply address in rot13, unscramble first)
Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Jakob Bieling" <ar****************@rot13.com> wrote...
in a post from 1995 ('why pass references?') in this group, Steve
Clamage said reading the value of an indeterminate pointer (no
dereferencing taking place) is undefined behavior. While I am in no doubt
about this, I could not find it in the Standard. Apart from the fact that
I did not know where to look, the search function did not turn up anything
useful. Can somebody please provide a page/paragraph number?


Please search Google Groups for posts containing "access invalid pointer
standard" (without double quotes, of course). 3.7.3.2 says that the effect
of using an invalid pointer value is undefined. Indeterminate value can be
either valid (by chance) or invalid. That doesn't have to be specified in
the Standard to be true. More information on "using an invalid pointer
value" is in the archives.

V
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.