[PATCH] D34578: cmath: Support clang's -fdelayed-template-parsing
Duncan P. N. Exon Smith via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 23 15:56:41 PDT 2017
dexonsmith created this revision.
r283051 added some functions to cmath (in namespace std) that have the same name as functions in math.h (in the global namespace). Clang's limited support for `-fdelayed-template-parsing` chokes on this. Rename the ones in `cmath` and their uses in `complex` and the test.
(Incidentally, I noticed that r283051 was optimizing the implementation of `<complex>`. I wonder why we have so much code in that header, instead of calling out to libc's already-optimized `<complex.h>` implementation?)
rdar://problem/32848355
https://reviews.llvm.org/D34578
Files:
libcxx/include/cmath
libcxx/include/complex
libcxx/test/libcxx/numerics/c.math/constexpr-fns.pass.cpp
libcxx/test/libcxx/numerics/c.math/fdelayed-template-parsing.sh.cpp
libcxx/utils/libcxx/test/config.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34578.103790.patch
Type: text/x-patch
Size: 20805 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170623/10007d90/attachment-0001.bin>
More information about the cfe-commits
mailing list