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  <t...@codesourcery.com>
        Marc Glisse  <marc.gli...@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

Reply via email to