Re: help understanding behaviour of unsuffixed float constants

2014-05-22 Thread James Dennett
On Thu, May 22, 2014 at 12:36 PM, Regan, Brian (EPC COE) wrote: > Don't misunderstand - I like the behaviour. I don't want the unnecessary > implicit conversions). > > My concern stems only from the compliance to the standard. Some of our > internal software standards require ISO99 compliance, a

RE: help understanding behaviour of unsuffixed float constants

2014-05-22 Thread Regan, Brian (EPC COE)
To: Regan, Brian (EPC COE) Cc: 'gcc@gcc.gnu.org' Subject: Re: help understanding behaviour of unsuffixed float constants On Thu, May 22, 2014 at 07:16:43PM +, Regan, Brian (EPC COE) wrote: > I wonder if someone could help shed light on this for me. Why do you think this is a pr

Re: help understanding behaviour of unsuffixed float constants

2014-05-22 Thread Jakub Jelinek
On Thu, May 22, 2014 at 07:16:43PM +, Regan, Brian (EPC COE) wrote: > I wonder if someone could help shed light on this for me. Why do you think this is a problem? Conversion from float to double can't raise any exceptions, no bits are lost, and (double) a < 200.0 and a < 200.0f have the exa

help understanding behaviour of unsuffixed float constants

2014-05-22 Thread Regan, Brian (EPC COE)
I wonder if someone could help shed light on this for me. Based on the statement in ISO C spec (ISO 9899:1990) section '6.1.3.1 Floating Constants' statement "An unsuffixed floating constant has type double." it appears to me that the gcc compiler may not be in strict compliance. --