https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85672
Bug ID: 85672 Summary: error: redefinition of 'constexpr long double std::abs(long double)' Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: danglin at gcc dot gnu.org Target Milestone: --- Host: hppa2.0w-hp-hpux11.11 Target: hppa2.0w-hp-hpux11.11 Build: hppa2.0w-hp-hpux11.11 libtool: compile: /test/gnu/gcc/objdir/./gcc/xgcc -shared-libgcc -B/test/gnu/gc c/objdir/./gcc -nostdinc++ -L/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc+ +-v3/src -L/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/src/.libs -L/ test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/libsupc++/.libs -B/opt/gn u/gcc/gcc-9/hppa2.0w-hp-hpux11.11/bin/ -B/opt/gnu/gcc/gcc-9/hppa2.0w-hp-hpux11.1 1/lib/ -isystem /opt/gnu/gcc/gcc-9/hppa2.0w-hp-hpux11.11/include -isystem /opt/g nu/gcc/gcc-9/hppa2.0w-hp-hpux11.11/sys-include -fno-checking -I/test/gnu/gcc/gcc /libstdc++-v3/../libgcc -I/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v 3/include/hppa2.0w-hp-hpux11.11 -I/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/lib stdc++-v3/include -I/test/gnu/gcc/gcc/libstdc++-v3/libsupc++ -D_GLIBCXX_SHARED - fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi -fdiagnos tics-show-location=once -frandom-seed=atexit_thread.lo -g -O2 -c ../../../../gcc /libstdc++-v3/libsupc++/atexit_thread.cc -fPIC -DPIC -D_GLIBCXX_SHARED -o atexi t_thread.o In file included from /test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/cstdlib:77, from ../../../../gcc/libstdc++-v3/libsupc++/atexit_thread.cc:25: /test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/bits/std_abs.h:102:3: error: redefinition of 'constexpr long double std::abs(long double)' abs(__float128 __x) ^~~ /test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/bits/std_abs.h:78:3: note: 'constexpr long double std::abs(long double)' previously defined here abs(long double __x) ^~~ In file included from /test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/bits/move.h:55, from /test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/bits/nested_exception.h:40, from /test/gnu/gcc/gcc/libstdc++-v3/libsupc++/exception:144, from /test/gnu/gcc/gcc/libstdc++-v3/libsupc++/new:40, from ../../../../gcc/libstdc++-v3/libsupc++/atexit_thread.cc:26: /test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/type_traits:347:12: error: redefinition of 'struct std::__is_floating_point_helper<long double>' struct __is_floating_point_helper<__float128> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/type_traits:342:12: note: previous definition of 'struct std::__is_floating_point_helper<long double>' struct __is_floating_point_helper<long double> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~