OSDN Git Service

* typeck.c (build_component_ref): Always complain about offsetof
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Feb 2002 19:31:23 +0000 (19:31 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Feb 2002 19:31:23 +0000 (19:31 +0000)
commit33d31608efaff0bcd06e6ee67a70fc46bbebf974
tree80228c7e0490ef91806b6ba75498c7783a7abd06
parent11ce0f1a9b9c3a018744ebcda20e674b57a0be70
    * typeck.c (build_component_ref): Always complain about offsetof
        constructs on non-PODs.  Only make it an error for members of
        virtual bases.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49406 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/g++.dg/abi/offsetof.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.other/friend1.C