Full name of submitter (unless configured in github; will be published with the issue): Jiang An
Reference (section label): [cpp.pragma]
Link to reflector thread (if any):
Issue description:
Currently, it is implementation-defined whether STDC pragmas are supported, and the effects of such a pragma is only mentioned in a note in [cfenv.syn].
The status quo seems allowing implementations to have STDC pragmas supported with effects different from those in C. Should we require that a pragma specified in the C standard (FP_CONTRACT, FENV_ACCESS, and CX_LIMITED_RANGE added in C99; FENV_ROUND and FENV_DEC_ROUND added in C23) is either ignored or has the same effects as in C?
Full name of submitter (unless configured in github; will be published with the issue): Jiang An
Reference (section label): [cpp.pragma]
Link to reflector thread (if any):
Issue description:
Currently, it is implementation-defined whether
STDC
pragmas are supported, and the effects of such a pragma is only mentioned in a note in [cfenv.syn].The status quo seems allowing implementations to have
STDC
pragmas supported with effects different from those in C. Should we require that a pragma specified in the C standard (FP_CONTRACT
,FENV_ACCESS
, andCX_LIMITED_RANGE
added in C99;FENV_ROUND
andFENV_DEC_ROUND
added in C23) is either ignored or has the same effects as in C?Suggested resolution: