c++/8417: g++ 3.2 generating different (and incorrect?) code from g++ 2.95.4

bangerth@dealii.org bangerth@dealii.org
Fri Nov 1 17:50:00 GMT 2002


Synopsis: g++ 3.2 generating different (and incorrect?) code from g++ 2.95.4

State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Fri Nov  1 17:50:01 2002
State-Changed-Why:
    What you try is calling for trouble: you should not assume
    anything about where member variables are located relative
    to "this". Also, "this" may change from sub- to superclass,
    depending on the layout of vtables, etc. You should only
    try to zero out data pointed to by "this" if you absolutely
    know what you do, and stick to the ABI that is relevant to
    your platform.
    
    This said, the ABI gcc uses on Linux has changed between
    2.95 and 3.2, so the inconsistent behavior is not surprising.

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



More information about the Gcc-bugs mailing list