The diagnostic for use of __func__ outside a function, as tested in gcc.dg/func-outside-*.c, wrongly has line number 0 instead of the line number of the bad use of __func__.
func-outside-1.c:0: warning: '__func__' is not defined outside of function scope This is a regression from 3.2.x. When fixed, the " { target *-*-* } 0" should be removed from those testcases so they test the diagnostic in its proper location. -- Summary: __func__ diagnostic in bad location Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jsm28 at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18322