]> git.ipfire.org Git - thirdparty/gcc.git/commit
typeck.c (build_component_ref): Always complain about offsetof constructs on non...
authorJason Merrill <jason@redhat.com>
Fri, 1 Feb 2002 19:31:23 +0000 (14:31 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 1 Feb 2002 19:31:23 +0000 (14:31 -0500)
commitf2d9afece3fb462b7abd8209a8d5d7119b28c0cd
tree80228c7e0490ef91806b6ba75498c7783a7abd06
parent1338ea6c7f4f429b5920196173b2e35ed3f54263
typeck.c (build_component_ref): Always complain about offsetof constructs on non-PODs.

        * typeck.c (build_component_ref): Always complain about offsetof
        constructs on non-PODs.  Only make it an error for members of
        virtual bases.

From-SVN: r49406
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