[cfe-dev] Issue with map and unordered_map: call to deleted constructor of 'std::pair<const int, int>'

Miles Bader miles at gnu.org
Tue Sep 20 00:03:58 PDT 2011


Jeffrey Yasskin <jyasskin at google.com>
writes:
> http://gcc.gnu.org/viewcvs?view=revision&revision=174464 changed
> some things around here in May. Does it fix the bug you're looking
> at? It's not in the gcc-4.6.x release branch, but we may be able to
> convince them to include it in a future 4.6 release.

FWIW, the gcc development trunk[*] still compiles both my boost test
case and David's very small test case:

   struct foo {
     void operator=(foo&&);
   } g((foo()));

... without error.

So presuming clang is correct, and this _should_ be an error, the
issue still seems to be present in gcc.

[*] or rather, the most recent Debian snapshot of it:
gcc (Debian 20110914-1) 4.7.0 20110914 (experimental) [trunk revision 178863]

Thanks,

-Miles

-- 
Un-American, adj. Wicked, intolerable, heathenish.




More information about the cfe-dev mailing list