This is the mail archive of the gcc-patches@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]

Re: constexpr vector indexing


On Sun, 7 Jul 2013, Gabriel Dos Reis wrote:

On Sun, Jul 7, 2013 at 10:54 AM, Marc Glisse <marc.glisse@inria.fr> wrote:
Hello,

it turns out there wasn't much missing here. I got side-tracked because
fold_unary_loc doesn't call fold_indirect_ref_1, and fold_indirect_ref_1 has
a too strict comparison type == TREE_TYPE (optype) (should compare
TYPE_MAIN_VARIANT instead?),

or same_type_p.

I thought of that, but it is a front-end interface, not accessible from fold-const.

but none of that was necessary so I'll leave it
for another time. The new testcase is not that useful, but I didn't remember
there was already one with dg-bogus.


Bootstrap+testsuite on x86_64-unknown-linux-gnu.

2013-07-07  Marc Glisse  <marc.glisse@inria.fr>

        PR c++/53094
gcc/cp/
        * semantics.c (cxx_eval_bit_field_ref): Handle VECTOR_CST.

OK.

Thanks.

--
Marc Glisse


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