This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc -fsingle-precision-constant
- From: Phil Edwards <phil at jaj dot com>
- To: Mathieu Malaterre <mathieu dot malaterre at kitware dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 27 Aug 2004 19:54:25 -0400
- Subject: Re: gcc -fsingle-precision-constant
- References: <412FAE83.2040300@kitware.com>
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.