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++/10259: segmentation fault


Synopsis: segmentation fault

State-Changed-From-To: feedback->closed
State-Changed-By: bangerth
State-Changed-When: Sat Mar 29 00:07:24 2003
State-Changed-Why:
    Actually, there was enough information in the PR. This is
    an extract:
    ----------------------
    struct X { X();                };
    struct B { static void foo (); };
    
    struct Y {
        void foo() {
          B::foo();
        }
    }
    
    X::X() {}
    -----------------------
    Note the missing semicolon after the declaration of struct
    Y! With 3.2.3, we get this:
    g/x> /home/bangerth/bin/gcc-3.2.3-pre/bin/c++ -c y.cc
    y.cc:10: internal error: Segmentation fault
    
    This ICEd with 2.95 and 3.0 as well, so is not a regression.
    On the other hand, 3.3 and 3.4 are fixed:
    
    g/x> /home/bangerth/bin/gcc-3.3-pre/bin/c++ -c y.cc
    y.cc:10: error: ISO C++ forbids defining types within return type
    y.cc:10: error: `void ()()' is not an aggregate type
    y.cc:10: error: semicolon missing after declaration of `struct Y'
    g/x>
    g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c y.cc
    y.cc:10: error: return type specification for constructor invalid
    
    Since this is not a regression, the bug will certainly
    not be fixed for 3.2.3, so I close this report.
    
    W.

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


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