This is the mail archive of the gcc-prs@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++/9559: [3.4 regression] ICE with invalid initialization of a static const member


Old Synopsis: ICE at the definition of a static const member
New Synopsis: [3.4 regression] ICE with invalid initialization of a static const member

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Mon Feb  3 23:52:54 2003
State-Changed-Why:
    Confirmed. A shorter testcase is
    -----------------
    struct A {
        static const int size = BOGUS;
    };
    const int A::size;
    ----------------------
    tmp/g> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc
    x.cc:2: error: `BOGUS' was not declared in this scope
    x.cc:4: internal compiler error: Segmentation fault
    
    It's a mainline regression, 3.3 just gives a reasonable
    error.
    
    W.

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


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