public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/47450] New: Anonymous top-level classes assigned to static members fail.
@ 2011-01-24 23:05 drahflow at gmx dot de
  2012-01-06  0:12 ` [Bug c++/47450] [4.5/4.6/4.7 Regression] " pinskia at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: drahflow at gmx dot de @ 2011-01-24 23:05 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: Anonymous top-level classes assigned to static members
                    fail.
           Product: gcc
           Version: 4.5.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: drahflow@gmx.de


class A {
  public:
    virtual void f() = 0;
};

class B {
    static A *a;
};

A *B::a = new (class: public A {
  public:
    void f() { }
});

results in

01.c++:10:32: internal compiler error: in nested_anon_class_index, at
cp/mangle.c:1294

g++-4.4 accepts the code on my system.


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

end of thread, other threads:[~2012-01-06 23:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-24 23:05 [Bug c++/47450] New: Anonymous top-level classes assigned to static members fail drahflow at gmx dot de
2012-01-06  0:12 ` [Bug c++/47450] [4.5/4.6/4.7 Regression] " pinskia at gcc dot gnu.org
2012-01-06 18:46 ` jakub at gcc dot gnu.org
2012-01-06 22:57 ` jason at gcc dot gnu.org
2012-01-06 23:19 ` jason at gcc dot gnu.org
2012-01-06 23:26 ` 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).