Annex F (informative)
Core undefined behavior
[ub]
F.3
[expr]
: Expressions
[ub.expr]
F.3.20
[ub:expr.unary.dereference]
Specified in:
[expr.
unary.
op]
1
#
Dereferencing a pointer that does not point to an object or function has undefined behavior
.
2
#
[
Example
1
:
int
f
(
)
{
int
*
p
=
nullptr
;
return
*
p;
// undefined behavior
}
—
end example
]