public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17227] New: Default copy constructor being created although never invoked
@ 2004-08-29 12:29 igodard at pacbell dot net
  2004-08-29 14:49 ` [Bug c++/17227] " giovannibajo at libero dot it
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: igodard at pacbell dot net @ 2004-08-29 12:29 UTC (permalink / raw)
  To: gcc-bugs

I have a test case where the compiler is trying to build a default copy ctor and failing because the class has an un-copyable member. However, the class is never copied. Adding an explicit copy ctor to the class makes the problem go away, and that ctor is never called either (all uses are by reference; it's not that the ctor is optimized away).

However, the case is big and complicated, so rather than put in the work of isolating the source code I'm first asking whether this is expected behavior: must a copy ctor be supplied when the compiler-built one is impossible, even if the ctor is never used? And if this actually is bogus, do you already have a bug report on it?

Ivan
Ivan

-- 
           Summary: Default copy constructor being created although never
                    invoked
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: igodard at pacbell dot net
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2004-10-11 17:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-29 12:29 [Bug c++/17227] New: Default copy constructor being created although never invoked igodard at pacbell dot net
2004-08-29 14:49 ` [Bug c++/17227] " giovannibajo at libero dot it
2004-08-29 20:42 ` igodard at pacbell dot net
2004-10-11 17:57 ` pinskia at gcc dot gnu dot org

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).