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]

[Bug c++/68711] [6 regression] SEGV on an invalid offsetof of a member of a virtual base


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68711

--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Wed Dec  9 01:35:59 2015
New Revision: 231437

URL: https://gcc.gnu.org/viewcvs?rev=231437&root=gcc&view=rev
Log:
Fix PR c++/68711 - [6 regression] SEGV on an invalid offsetof of a member
of a virtual base.

gcc/testsuite/ChangeLog:
        * g++.dg/other/offsetof8.C: New test.

gcc/cp/ChangeLog:
        * typeck.c (build_class_member_access_expr): Strip NOPs before
        testing a potentially null operand for equality to zero.

Added:
    trunk/gcc/testsuite/g++.dg/other/offsetof8.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog

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