Re: [Patch, libfortran] PR 19155 Parsing invalid floating point input and EINVAL

2011-05-28 Thread Steve Kargl
On Sat, May 28, 2011 at 11:18:13AM +0300, Janne Blomqvist wrote: > > Regtested on x86_64-unknown-linux-gnu, Ok for trunk? > > 2011-05-28 Janne Blomqvist > > PR libfortran/19155 > * io/read.c (convert_real): Check for invalid input by comparing > endptr instead of EINVAL. >

[Patch, libfortran] PR 19155 Parsing invalid floating point input and EINVAL

2011-05-28 Thread Janne Blomqvist
Hi, Steve Ellcey reported that gfortran.dg/pr19155.f fails on HP-UX 11.31 because on that target strtod sets errno to EINVAL for invalid input, whereas many other implementations such as glibc does not. The problem is that C99 says nothing about setting errno to EINVAL for invalid input, and POSI