This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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] |
Tested on Linux-x64. The tests apparently would never fail unless the arrays are global and the pointer arithmetic local. However, these tests should ensure that the results are the same regardless of optimizations, and these test fail with the current compiler unless the specializations are present. 2017-01-22 Ville Voutilainen <ville.voutilainen@gmail.com> PR libstdc++/78420 * include/bits/stl_function.h (<cstdint>): New include in C++11 mode and above. (greater<_Tp*>): New specialization in C++11 mode and above. (less<_Tp*>): Likewise. (greater_equal<_Tp*>): Likewise. (less_equal<_Tp*>): Likewise. * testsuite/20_util/function_objects/pointer_comparison.cc: New. * testsuite/20_util/function_objects/pointer_comparison.inl: Likewise. * testsuite/20_util/function_objects/pointer_comparison_opt.cc: Likewise.
Attachment:
pr78420.diff
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |