public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/48062] New: `shadowed declaration is here' should be a note
@ 2011-03-10 16:42 d.g.gorbachev at gmail dot com
  2011-03-10 18:44 ` [Bug c/48062] " manu at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: d.g.gorbachev at gmail dot com @ 2011-03-10 16:42 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48062

           Summary: `shadowed declaration is here' should be a note
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: trivial
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: d.g.gorbachev@gmail.com


cat > main.c
int i;

int main(void)
{
  int i = 0;
  return i;
}
^D
$ gcc -Wshadow main.c
main.c: In function 'main':
main.c:5:7: warning: declaration of 'i' shadows a global declaration [-Wshadow]
main.c:1:5: warning: shadowed declaration is here [-Wshadow]


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

end of thread, other threads:[~2014-06-05  6:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-10 16:42 [Bug c/48062] New: `shadowed declaration is here' should be a note d.g.gorbachev at gmail dot com
2011-03-10 18:44 ` [Bug c/48062] " manu at gcc dot gnu.org
2011-06-09  1:46 ` momchil at xaxo dot eu
2011-06-09  7:55 ` manu at gcc dot gnu.org
2012-02-13 17:25 ` manu at gcc dot gnu.org
2014-06-03 16:57 ` mpolacek at gcc dot gnu.org
2014-06-05  5:31 ` mpolacek at gcc dot gnu.org
2014-06-05  6:21 ` mpolacek at gcc dot gnu.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).