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

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Thu Jun  4 08:17:45 2015
New Revision: 224115

URL: https://gcc.gnu.org/viewcvs?rev=224115&root=gcc&view=rev
Log:
        PR c/66341
        * c-typeck.c (build_c_cast): Wrap VALUE into NON_LVALUE_EXPR if
        it is a lvalue.

        * gcc.dg/lvalue-8.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/lvalue-8.c
Modified:
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-typeck.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to