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 c/68907] bogus warning: right-hand operand of comma expression has no effect on an atomic_int preincrement


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

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Tue Dec 15 15:13:49 2015
New Revision: 231656

URL: https://gcc.gnu.org/viewcvs?rev=231656&root=gcc&view=rev
Log:
        PR c/68907
        * c-typeck.c (build_atomic_assign): Set TREE_NO_WARNING on an
        artificial decl.

        * gcc.dg/pr68907.c: New test.

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

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