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 sanitizer/63956] [5 Regression][UBSAN] ICE segfault in cxx_eval_call_expression ../../gcc/cp/constexpr.c


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

--- Comment #13 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Mon Dec  1 15:29:11 2014
New Revision: 218221

URL: https://gcc.gnu.org/viewcvs?rev=218221&root=gcc&view=rev
Log:
    PR sanitizer/63956
    * ubsan.c (is_ubsan_builtin_p): Check also built-in class.
cp/
    * constexpr.c: Include ubsan.h.
    (cxx_eval_call_expression): Bail out for IFN_UBSAN_{NULL,BOUNDS}
    internal functions and for ubsan builtins.
    * error.c: Include internal-fn.h.
    (dump_expr): Add printing of internal functions.
testsuite/
    * c-c++-common/ubsan/shift-5.c: Add xfails.
    * g++.dg/ubsan/div-by-zero-1.C: Don't use -w.  Add xfail.
    * g++.dg/ubsan/pr63956.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/ubsan/pr63956.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/constexpr.c
    trunk/gcc/cp/error.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/c-c++-common/ubsan/shift-5.c
    trunk/gcc/testsuite/g++.dg/ubsan/div-by-zero-1.C
    trunk/gcc/ubsan.c


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