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 middle-end/59037] [4.8/4.9 Regression] ICE when accessing invalid element (nelts + 1) of vector


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59037

--- Comment #8 from vries at gcc dot gnu.org ---
Author: vries
Date: Mon Dec  2 08:37:09 2013
New Revision: 205583

URL: http://gcc.gnu.org/viewcvs?rev=205583&root=gcc&view=rev
Log:
Don't create out-of-bounds BIT_FIELD_REF.

2013-11-27  Tom de Vries  <tom@codesourcery.com>
        Marc Glisse  <marc.glisse@inria.fr>

    PR middle-end/59037
    * semantics.c (cxx_fold_indirect_ref): Don't create out-of-bounds
    BIT_FIELD_REF.

    * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
    BIT_FIELD_REF.
    * gimplify.c (gimple_fold_indirect_ref): Same.

    * c-c++-common/pr59037.c: New testcase.

Added:
    branches/gcc-4_8-branch/gcc/testsuite/c-c++-common/pr59037.c
Modified:
    branches/gcc-4_8-branch/gcc/ChangeLog
    branches/gcc-4_8-branch/gcc/cp/ChangeLog
    branches/gcc-4_8-branch/gcc/cp/semantics.c
    branches/gcc-4_8-branch/gcc/fold-const.c
    branches/gcc-4_8-branch/gcc/gimplify.c
    branches/gcc-4_8-branch/gcc/testsuite/ChangeLog


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