https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64278
Bug ID: 64278 Summary: [5 Regression] /sreal.c:254:22: error: call of overloaded 'abs(const int64_t&)' is ambiguous Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: danglin at gcc dot gnu.org Host: hppa2.0-hp-hpux11.11 Target: hppa2.0-hp-hpux11.11 Build: hppa2.0-hp-hpux11.11 g++ -c -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables - W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include -I/opt/gnu/gcc/gmp/include -I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc/gcc/../libbacktrace -o sreal.o -MT sreal.o -MMD -MP -MF ./.deps/sreal.TPo ../../gcc/gcc/sreal.c ../../gcc/gcc/sreal.c: In member function 'sreal sreal::operator*(const sreal&) const': ../../gcc/gcc/sreal.c:254:22: error: call of overloaded 'abs(const int64_t&)' is ambiguous ../../gcc/gcc/sreal.c:254:22: note: candidates are: In file included from /home/gnu/gcc/gcc-4.7/bin/../lib/gcc/hppa2.0w-hp-hpux11.11/4.7.2/include-fixed/wchar.h:33:0, from /home/gnu/gcc/gcc-4.7/bin/../lib/gcc/hppa2.0w-hp-hpux11.11/4.7.2/../../../../include/c++/4.7.2/cwchar:46, from /home/gnu/gcc/gcc-4.7/bin/../lib/gcc/hppa2.0w-hp-hpux11.11/4.7.2/../../../../include/c++/4.7.2/bits/postypes.h:42, from /home/gnu/gcc/gcc-4.7/bin/../lib/gcc/hppa2.0w-hp-hpux11.11/4.7.2/../../../../include/c++/4.7.2/bits/char_traits.h:42, from /home/gnu/gcc/gcc-4.7/bin/../lib/gcc/hppa2.0w-hp-hpux11.11/4.7.2/../../../../include/c++/4.7.2/string:42, from ../../gcc/gcc/system.h:201, from ../../gcc/gcc/sreal.c:51: /home/gnu/gcc/gcc-4.7/bin/../lib/gcc/hppa2.0w-hp-hpux11.11/4.7.2/include-fixed/stdlib.h:39:21: note: int abs(int) In file included from /home/gnu/gcc/gcc-4.7/bin/../lib/gcc/hppa2.0w-hp-hpux11.11/4.7.2/../../../../include/c++/4.7.2/bits/stl_algo.h:61:0, from /home/gnu/gcc/gcc-4.7/bin/../lib/gcc/hppa2.0w-hp-hpux11.11/4.7.2/../../../../include/c++/4.7.2/algorithm:63, from ../../gcc/gcc/system.h:218, from ../../gcc/gcc/sreal.c:51: /home/gnu/gcc/gcc-4.7/bin/../lib/gcc/hppa2.0w-hp-hpux11.11/4.7.2/../../../../include/c++/4.7.2/cstdlib:140:3: note: long int std::abs(long int) ../../gcc/gcc/sreal.c:254:64: error: call of overloaded 'abs(const int64_t&)' is ambiguous ../../gcc/gcc/sreal.c:254:64: note: candidates are: In file included from /home/gnu/gcc/gcc-4.7/bin/../lib/gcc/hppa2.0w-hp-hpux11.11/4.7.2/include-fixed/wchar.h:33:0, from /home/gnu/gcc/gcc-4.7/bin/../lib/gcc/hppa2.0w-hp-hpux11.11/4.7.2/../../../../include/c++/4.7.2/cwchar:46, from /home/gnu/gcc/gcc-4.7/bin/../lib/gcc/hppa2.0w-hp-hpux11.11/4.7.2/../../../../include/c++/4.7.2/bits/postypes.h:42, from /home/gnu/gcc/gcc-4.7/bin/../lib/gcc/hppa2.0w-hp-hpux11.11/4.7.2/../../../../include/c++/4.7.2/bits/char_traits.h:42, from /home/gnu/gcc/gcc-4.7/bin/../lib/gcc/hppa2.0w-hp-hpux11.11/4.7.2/../../../../include/c++/4.7.2/string:42, from ../../gcc/gcc/system.h:201, from ../../gcc/gcc/sreal.c:51: /home/gnu/gcc/gcc-4.7/bin/../lib/gcc/hppa2.0w-hp-hpux11.11/4.7.2/include-fixed/stdlib.h:39:21: note: int abs(int) In file included from /home/gnu/gcc/gcc-4.7/bin/../lib/gcc/hppa2.0w-hp-hpux11.11/4.7.2/../../../../include/c++/4.7.2/bits/stl_algo.h:61:0, from /home/gnu/gcc/gcc-4.7/bin/../lib/gcc/hppa2.0w-hp-hpux11.11/4.7.2/../../../../include/c++/4.7.2/algorithm:63, from ../../gcc/gcc/system.h:218, from ../../gcc/gcc/sreal.c:51: /home/gnu/gcc/gcc-4.7/bin/../lib/gcc/hppa2.0w-hp-hpux11.11/4.7.2/../../../../include/c++/4.7.2/cstdlib:140:3: note: long int std::abs(long int) make[3]: *** [sreal.o] Error 1