Bug#228645: libstdc++5-3.3-dev: call of overloaded `llabs(int)' is ambiguous
Package: libstdc++5-3.3-dev
Version: 1:3.3.3-0pre2
Severity: normal
---
#include <math.h>
#include <cstdlib>
using namespace std;
int foo() { return llabs(1); }
---
g++-3.3 blah.cc -c
blah.cc: In function `int foo()':
blah.cc:6: error: call of overloaded `llabs(int)' is ambiguous
/usr/include/stdlib.h:754: error: candidates are: long long int llabs(long long
int)
/usr/include/c++/3.3/cstdlib:152: error: long long int
__gnu_cxx::llabs(long long int)
This works in g++ 3.2, but not 3.3.
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux zewt.org 2.6.0 #1 Thu Jan 8 17:05:45 EST 2004 i686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8
Versions of packages libstdc++5-3.3-dev depends on:
ii g++-3.3 1:3.3.3-0pre2 The GNU C++ compiler
ii gcc-3.3-base 1:3.3.3-0pre2 The GNU Compiler Collection (base
ii libc6-dev 2.3.2.ds1-10 GNU C Library: Development Librari
ii libstdc++5 1:3.3.3-0pre2 The GNU Standard C++ Library v3
-- no debconf information
Reply to: