This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc -fsingle-precision-constant


On Fri, Aug 27, 2004 at 05:58:27PM -0400, Mathieu Malaterre wrote:
[...]
> Using
> 
> gcc -fsingle-precision-constant foo.cxx
> 
> And gcc returns:
> 
> foo.cxx: In function `int main()':
> foo.cxx:9: error: no matching function for call to `clamp(double&, 
> float, float
>    )'
> 
> 
> I believe that by default all floating point number should be consider 
> double. Am I correct ?

By /default/, yes, but not when you specify otherwise.  Duh.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]