public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/51183] New: pair piecewise_construct_t constructor copies
@ 2011-11-17  2:34 marc.glisse at normalesup dot org
  2011-11-17  9:18 ` [Bug libstdc++/51183] " chris at bubblescope dot net
                   ` (21 more replies)
  0 siblings, 22 replies; 23+ messages in thread
From: marc.glisse at normalesup dot org @ 2011-11-17  2:34 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51183

             Bug #: 51183
           Summary: pair piecewise_construct_t constructor copies
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: marc.glisse@normalesup.org


Hello,

on clc++, someone noticed that the technique used by libstdc++ for pair's
piecewise_construct_t constructor calls a (elided) copy constructor. In
particular:

#include <utility>
#include <tuple>
struct A {
        A();
        A(A const&)=delete;
};
int main(){
        std::pair<A,int> p { std::piecewise_construct_t(), std::make_tuple(),
std::make_tuple(1) };
}

is rejected by the compiler.


^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2011-12-06 15:28 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-17  2:34 [Bug libstdc++/51183] New: pair piecewise_construct_t constructor copies marc.glisse at normalesup dot org
2011-11-17  9:18 ` [Bug libstdc++/51183] " chris at bubblescope dot net
2011-11-17 10:18 ` redi at gcc dot gnu.org
2011-11-17 10:43 ` redi at gcc dot gnu.org
2011-11-17 12:21 ` marc.glisse at normalesup dot org
2011-12-05 15:54 ` paolo.carlini at oracle dot com
2011-12-05 16:07 ` redi at gcc dot gnu.org
2011-12-05 16:11 ` redi at gcc dot gnu.org
2011-12-05 16:13 ` paolo.carlini at oracle dot com
2011-12-05 16:19 ` chris at bubblescope dot net
2011-12-05 16:25 ` chris at bubblescope dot net
2011-12-05 16:28 ` redi at gcc dot gnu.org
2011-12-06  9:56 ` paolo.carlini at oracle dot com
2011-12-06  9:56 ` paolo.carlini at oracle dot com
2011-12-06 10:15 ` chris at bubblescope dot net
2011-12-06 10:32 ` paolo.carlini at oracle dot com
2011-12-06 10:32 ` paolo.carlini at oracle dot com
2011-12-06 14:33 ` chris at bubblescope dot net
2011-12-06 14:42 ` redi at gcc dot gnu.org
2011-12-06 14:44 ` chris at bubblescope dot net
2011-12-06 14:54 ` paolo.carlini at oracle dot com
2011-12-06 15:14 ` paolo at gcc dot gnu.org
2011-12-06 15:28 ` paolo.carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).