[Bug c++/68711] [6 regression] SEGV on an invalid offsetof of a member of a virtual base
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Dec 9 01:36:00 GMT 2015
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
More information about the Gcc-bugs
mailing list