This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Abt long long support
- From: Gerald Pfeifer <gerald at pfeifer dot com>
- To: Ian Lance Taylor <iant at google dot com>, libstdc++ at gcc dot gnu dot org
- Cc: Mohamed Shafi <shafitvm at gmail dot com>, gcc at gcc dot gnu dot org
- Date: Sun, 19 Nov 2006 15:26:26 +0100 (CET)
- Subject: Re: Abt long long support
- References: <ba0bd44d0611052121i16d9d96v14cf3484adbdf1bd@mail.gmail.com> <m38xiopeuh.fsf@dhcp-172-18-118-195.corp.google.com>
On Mon, 6 Nov 2006, Ian Lance Taylor wrote:
> gcc always supports "long long" for all targets.
I just noticed that while the base compiler may support "long long", this
extension fails to interact well with at least one other extension: hash_map<>
in libstdc++.
Specifically, the following example program will fail to compile with
error: no match for call to '(const __gnu_cxx::hash<long long int>) (const long long int&)'
Example program:
#include <ext/hash_set>
using namespace __gnu_cxx;
typedef long long T;
void f() {
hash_set<T> t;
t.insert(1);
t.erase(1);
}
Now filed as libstdc++/29898.
Gerald