This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/33930] [c++0x] ambiguous overload in std::stack::push() when using --std=cxx0x
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Oct 2007 22:30:33 -0000
- Subject: [Bug libstdc++/33930] [c++0x] ambiguous overload in std::stack::push() when using --std=cxx0x
- References: <bug-33930-14817@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from pcarlini at suse dot de 2007-10-31 22:30 -------
Update: on the LWG reflector Howard Hinnant replied that likely this is a bug
in the G++ implementation of rvalue references (I could not believe that!): the
conversion from int* to const int* leads to a temporary which then should bind
safely to the rvalue reference overload. Orthogonally, people apparently like
the idea of changing the container adaptors per Comment #7, therefore short
term our library can avoid the issue.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33930