c++/6262: [3.4 regression] Incorrect error message reported when applying sizeof() to non-static class member

bangerth@dealii.org bangerth@dealii.org
Wed Jan 22 21:36:00 GMT 2003


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



More information about the Gcc-bugs mailing list