https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62118
Bug ID: 62118 Summary: cases under libstdc++-v3/testsuite/ext/ failed on aarch64/arm Product: gcc Version: 4.10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: amker.cheng at gmail dot com Hi, Revision 213779 causes lots cases under libstdc++-v3/testsuite/ext/ failed on aarch64-none-elf and arm-none-eabi. The log message is like In file included from /home/binche01/work/oban-work/build-aarch64-none-elf/obj/gcc2/aarch64-none-elf/libstdc++-v3/include/ext/random:3494:0, from /home/binche01/work/oban-work/src/gcc/libstdc++-v3/testsuite/ext/random/arcsine_distribution/cons/default.cc:23: /home/binche01/work/oban-work/src/gcc/libstdc++-v3/include/ext/random.tcc: In member function '__gnu_cxx::{anonymous}::uniform_on_sphere_helper<2ul, _RealType>::result_type __gnu_cxx::{anonymous}::uniform_on_sphere_helper<2ul, _RealType>::operator()(_NormalDistribution&, _UniformRandomNumberGenerator&)': /home/binche01/work/oban-work/src/gcc/libstdc++-v3/include/ext/random.tcc:1609:18: error: 'hypot' is not a member of 'std' auto __norm = std::hypot(__ret[0], __ret[1]); ^ /home/binche01/work/oban-work/src/gcc/libstdc++-v3/include/ext/random.tcc:1609:18: note: suggested alternative: In file included from /home/binche01/work/oban-work/build-aarch64-none-elf/obj/gcc2/aarch64-none-elf/libstdc++-v3/include/cmath:44:0, from /home/binche01/work/oban-work/build-aarch64-none-elf/obj/gcc2/aarch64-none-elf/libstdc++-v3/include/random:38, from /home/binche01/work/oban-work/build-aarch64-none-elf/obj/gcc2/aarch64-none-elf/libstdc++-v3/include/ext/random:38, from /home/binche01/work/oban-work/src/gcc/libstdc++-v3/testsuite/ext/random/arcsine_distribution/cons/default.cc:23: /home/binche01/work/oban-work/target-aarch64-none-elf/aarch64-none-elf/include/math.h:306:15: note: 'hypot' extern double hypot _PARAMS((double, double)); ^ FAIL: ext/random/arcsine_distribution/cons/default.cc (test for excess errors) Excess errors: /home/binche01/work/oban-work/src/gcc/libstdc++-v3/include/ext/random.tcc:1609:18: error: 'hypot' is not a member of 'std'