[cfe-dev] LibC++ v3.8 - Problems with ISO C wrapper headers
Dennis Luehring via cfe-dev
cfe-dev at lists.llvm.org
Mon Jan 25 02:16:31 PST 2016
Am 25.01.2016 um 10:37 schrieb David Chisnall via cfe-dev:
> A little while ago, on FreeBSD we rewrote some of the [tg]math.h macros. The old versions used sizeof(arg) == sizeof({float,double,long double}) to select the versions. The new versions to use _Generic (with fallback __builtin_type_select and fallback to sizeof). Unlike C++ overloading, _Generic does not permit implicit conversion. We found (and reported / fixed) several issues that were real bugs in peopleâs code that had been silently returning the wrong value on other platforms (and older versions of FreeBSD) for years.
https://github.com/freebsd/freebsd/blob/master/lib/msun/src/math.h
line 80+
More information about the cfe-dev
mailing list