Document: WG14 N1316


Conversion between pointers and floating types


Submitter: Fred Tydeman (USA)
Submission Date: 2008-07-13
Previous version of paper: N1306
Related WG14 documents: N1187
Subject: Conversion between pointers and floating types

Currently, the standard is silent on what happens when a conversion is done between a pointer type and a floating type -- which means it is implicitly undefined as per section 4, paragraph 2, in conformance.

Of the choices:

the committee voted to make it a constraint violation.

Changes to C1x

Add a Constraints section to 6.3.2.3 Pointers

Any pointer type shall not be converted to any floating type. Any floating type shall not be converted to any pointer type.