[Bug libstdc++/67309] Error compiling with -std=c++11 and -fsingle-precision-constant

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Aug 21 18:26:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67309

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2015-08-21
          Component|c++                         |libstdc++
           Assignee|unassigned at gcc dot gnu.org      |redi at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Thanks for the nice testcase. There are a few such constants in the library,
and we *really* do want them to be double precision because we are passing them
to std::min<double> or std::max<double>, so they're meant to be doubles and so
-fsingle-precision-constant buys you nothing here. I suppose we can add an
explicit template argument list to the calls to force promotion to double.



More information about the Gcc-bugs mailing list