public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/60299] New: [C++11] Copy constructor calls itself if base class has a constructor which is a variadic function template
@ 2014-02-21  8:30 m.lederhilger@ds-automotion.com
  2014-02-21  8:31 ` [Bug c++/60299] " m.lederhilger@ds-automotion.com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: m.lederhilger@ds-automotion.com @ 2014-02-21  8:30 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 60299
           Summary: [C++11] Copy constructor calls itself if base class
                    has a constructor which is a variadic function
                    template
           Product: gcc
           Version: 4.8.2
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: m.lederhilger@ds-automotion.com

I have made a small example (see attachment) which exhibits the problem.

The generated copy constructor of class C calls itself, and then the base
class's constructor - see disassembly (see attachment of gdb session). This
results in an infinite recursion.


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

end of thread, other threads:[~2014-02-21 15:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-21  8:30 [Bug c++/60299] New: [C++11] Copy constructor calls itself if base class has a constructor which is a variadic function template m.lederhilger@ds-automotion.com
2014-02-21  8:31 ` [Bug c++/60299] " m.lederhilger@ds-automotion.com
2014-02-21  8:32 ` m.lederhilger@ds-automotion.com
2014-02-21  8:32 ` m.lederhilger@ds-automotion.com
2014-02-21  9:59 ` m.lederhilger@ds-automotion.com
2014-02-21 12:11 ` daniel.kruegler at googlemail dot com
2014-02-21 15:52 ` redi at gcc dot gnu.org
2014-02-21 15:54 ` redi at gcc dot gnu.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).