In <
[email protected]> Thomas Stegen
Nope, it doesn't. It says:
1 A pointer to void may be converted to or from a pointer to any
incomplete or object type. A pointer to any incomplete or
object type may be converted to a pointer to void and back again;
the result shall compare equal to the original pointer.
But there is no mention that the conversion is automatic. Compare with
5 An integer may be converted to any pointer type. Except as
previously specified, the result is implementation-defined,
might not be correctly aligned, might not point to an entity of
the referenced type, and might be a trap representation.
6 Any pointer type may be converted to an integer type. Except as
previously specified, the result is implementation-defined. If the
result cannot be represented in the integer type, the behavior
is undefined. The result need not be in the range of values of
any integer type.
7 A pointer to an object or incomplete type may be converted to
a pointer to a different object or incomplete type.
Do you mean that these conversions are automatic, too?