Defect report from : Joanna Farley , Sun Microsystems
(Please direct followup comments direct to yyyyyyyyyyyyyy@xxxxxxxxxxxxx)
@ page 241 line 8446-8447 section inttypes.h objection {sunw-jf03-ld5}
Problem:
Defect code : 1. Error
The specification for <inttypes.h> includes the following prototype
declarations in XBD6 page 241 lines 8446-8447:
intmax_t wcstoimax(const wchar_t *restrict, wchar_t **restrict, int);
uintmax_t wcstoumax(const wchar_t *restrict, wchar_t **restrict, int);
The problem is that wchar_t is not defined by inclusion of this
header, nor is allowance made for including the appropriate header,
<stddef.h> within <inttypes.h> or <stdint.h>.
The specification for the wcstoimax() and wcstoumax() interfaces
(XSH6, page 1614 lines 49714-49719) requires the inclusion of
<stddef.h> as well <inttypes.h>. This appears to leave <inttypes.h>
broken as one can not include <inttypes.h> without also including
<stddef.h>. To do so will mean failures of an undefined type wchar_t
will occur due to the prototype declarations.
Action:
Add after XBD6, page 240 line 8410 the line:
"The <inttypes.h> header shall include the <stddef.h>
|