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++/6262: [3.4 regression] Incorrect error message reported when applying sizeof() to non-static class member


Old Synopsis: Incorrect error message reported when applying sizeof() to non-static class member
New Synopsis: [3.4 regression] Incorrect error message reported when applying sizeof() to non-static class member

State-Changed-From-To: feedback->analyzed
State-Changed-By: bangerth
State-Changed-When: Wed Jan 22 21:32:04 2003
State-Changed-Why:
    With present 3.4, this now even gives an ICE:
    ---------------------------
    #include <iostream>
    
    struct X {
      char x[1];
    };
    
    struct Y {
      Y() { std::cout << sizeof(X::x); }
    };
    -----------------------------
    (That's the first example in the PR). There was no ICE
    in the 3.3 branch.

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


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