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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Sun Apr 12 19:10:58 2015
New Revision: 222022

URL: https://gcc.gnu.org/viewcvs?rev=222022&root=gcc&view=rev
Log:
    PR c++/65736
    * constexpr.c (cxx_eval_pointer_plus_expression): Don't fold for VLAs,
    don't fold if op01 isn't divisible by TYPE_SIZE_UNIT.  Convert
    the expression to the original type at the end.

    * g++.dg/cpp0x/pr65736.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/pr65736.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/constexpr.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to