public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/55804] New: [4.7/4.8 regression] GCC omits required call to constructor
@ 2012-12-25  7:30 ppluzhnikov at google dot com
  2012-12-25  8:06 ` [Bug c++/55804] " ppluzhnikov at google dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: ppluzhnikov at google dot com @ 2012-12-25  7:30 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 55804
           Summary: [4.7/4.8 regression] GCC omits required call to
                    constructor
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ppluzhnikov@google.com


Test case (courtesy creduce-2.0.1):

/// --- cut ---
template <typename> struct vector {
  vector() { }
};

typedef vector<int> Arrays[1];
class C
{
    vector<int> v_;
    void Foo(const Arrays &);
};
Arrays a;
/// --- cut ---


GCC-4.7 before r194286 (PR55032) was merged:

g++ -S pp.ii -o pp-good.s
c++filt < pp-good.s | grep call
    call    vector<int>::vector()
    call    __static_initialization_and_destruction_0(int, int)


Current trunk:

cat pp-bad.7765.s
    .file    "pp.ii"
    .globl    a
    .bss
    .type    a, @object
    .size    a, 1
a:
    .zero    1
    .ident    "GCC: (GNU) 4.8.0 20121222 (experimental)"
    .section    .note.GNU-stack,"",@progbits


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

end of thread, other threads:[~2013-01-02 20:15 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-25  7:30 [Bug c++/55804] New: [4.7/4.8 regression] GCC omits required call to constructor ppluzhnikov at google dot com
2012-12-25  8:06 ` [Bug c++/55804] " ppluzhnikov at google dot com
2012-12-26 22:20 ` pinskia at gcc dot gnu.org
2012-12-31 10:20 ` pinskia at gcc dot gnu.org
2013-01-02 14:54 ` jason at gcc dot gnu.org
2013-01-02 19:04 ` jason at gcc dot gnu.org
2013-01-02 19:05 ` jason at gcc dot gnu.org
2013-01-02 19:05 ` jason at gcc dot gnu.org
2013-01-02 20:15 ` jason 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).