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/67730] [5/6 Regression] No warning when returning NULL in void function


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

--- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Fri Oct  2 18:01:50 2015
New Revision: 228408

URL: https://gcc.gnu.org/viewcvs?rev=228408&root=gcc&view=rev
Log:
        PR c/67730
        * c-typeck.c (convert_for_assignment): Use the expansion point
        location throughout.

        * gcc.dg/pr67730-1.c: New test.
        * gcc.dg/pr67730-2.c: New test.
        * gcc.dg/pr67730.h: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr67730-1.c
    trunk/gcc/testsuite/gcc.dg/pr67730-2.c
    trunk/gcc/testsuite/gcc.dg/pr67730.h
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]