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/67854] Missing diagnostic for passing bool to va_arg


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

--- Comment #9 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Wed Mar  2 07:24:19 2016
New Revision: 233891

URL: https://gcc.gnu.org/viewcvs?rev=233891&root=gcc&view=rev
Log:
        PR c/67854
        * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
        "is promoted to" warning.

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

Added:
    trunk/gcc/testsuite/gcc.dg/pr67854.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimplify.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]