https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110209
Bug ID: 110209 Summary: problem with strtod strtof strtold Product: gcc Version: 4.8.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: irip at qq dot com Target Milestone: --- When using strtod, strtof, and strtold functions in code to convert values that exceed the representation range, The error number after execution is incorrect, and the error message is: Got 37 Expected 38 Errno return. Requirements for this Class function in Standard C: if the correct value exceeds the range of representation, it is necessary to add/subtract the value (corresponding to the sign bit) HUGE_ VAL, HUGE_ VALF or HUGE_ After VALL, return and save the value of macro ERANGE in errno. During testing, it was found that the errno returned was not the ERANGE value, and the ERANGE value in the error message was not a common 34, but 38