This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++/9589: Segmentation fault on missing semicolon after class definition.


Synopsis: Segmentation fault on missing semicolon after class definition.

State-Changed-From-To: open->closed
State-Changed-By: reichelt
State-Changed-When: Thu Feb  6 23:26:19 2003
State-Changed-Why:
    Confirmed, but fixed on 3.3 branch and mainline.
    
    A reduced testcase is the following:
    
    ---------------------snip here----------------------
    struct A
    {
        A();
        void foo() const;
    };
    
    struct B
    {
        void bar (const A &a) const { a.foo(); }
    } // missing semicolon
    
    A::A () {}
    ---------------------snip here----------------------
    
    It crashes gcc 2.95.x, 3.0.x, 3.1.x, 3.2.x.
    However, the code gives a regular error with 3.3 branch and mainline.
    Since it's not a regression I close the PR.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9589


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]