public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/18322] New: __func__ diagnostic in bad location
@ 2004-11-06 21:29 jsm28 at gcc dot gnu dot org
  2004-11-06 21:32 ` [Bug c/18322] [3.3/3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2004-11-06 21:29 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-04-30 16:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-06 21:29 [Bug c/18322] New: __func__ diagnostic in bad location jsm28 at gcc dot gnu dot org
2004-11-06 21:32 ` [Bug c/18322] [3.3/3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
2004-11-09 21:22 ` cvs-commit at gcc dot gnu dot org
2004-11-10 19:47 ` [Bug c/18322] [3.3/3.4 " cvs-commit at gcc dot gnu dot org
2004-11-11 15:06 ` [Bug c/18322] [3.3 " pinskia at gcc dot gnu dot org
2005-04-30 16:31 ` gdr at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).