https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67730
--- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Author: mpolacek Date: Wed Sep 30 12:21:03 2015 New Revision: 228288 URL: https://gcc.gnu.org/viewcvs?rev=228288&root=gcc&view=rev Log: PR c/67730 * c-typeck.c (c_finish_return): Use the expansion point location for certain "return with value" warnings. * gcc.dg/pr67730.c: New test. Added: branches/gcc-5-branch/gcc/testsuite/gcc.dg/pr67730.c Modified: branches/gcc-5-branch/gcc/c/ChangeLog branches/gcc-5-branch/gcc/c/c-typeck.c branches/gcc-5-branch/gcc/testsuite/ChangeLog