https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110210
Bug ID: 110210 Summary: problem with strtol strtoll strtoul strtoull 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 strtol, strtoll, strtoul, and strtoull functions in code to convert values that exceed the representation range, Incorrect error number after execution The requirement of C standard for this Class function: if the correct value exceeds the representation range, LONG_ MIN, LONG_ MAX, LLONG_ MIN, LLONG_ MAX, ULONG_ MAX or ULLONG_ MAX (corresponding symbol bit) will be used as the return value, and the value of macro ERANGE will be stored in errno. During testing, it was found that the returned errno was not an ERANGE value