[Bug c/78359] Redeclaration of global variables is not reported

2016-11-15 Thread egall at gwmail dot gwu.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78359 Eric Gallager changed: What|Removed |Added CC||egall at gwmail dot gwu.edu --- Comment

[Bug c/78359] Redeclaration of global variables is not reported

2016-11-15 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78359 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c/78359] Redeclaration of global variables is not reported

2016-11-14 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78359 --- Comment #4 from Andrew Pinski --- (In reply to hugo74 from comment #2) > (In reply to Andrew Pinski from comment #1) > > Because > > int Counter > > > > in the global scope is consider a tentative definition. > > What is meant by "tentativ

[Bug c/78359] Redeclaration of global variables is not reported

2016-11-14 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78359 --- Comment #3 from Andrew Pinski --- http://en.cppreference.com/w/c/language/extern

[Bug c/78359] Redeclaration of global variables is not reported

2016-11-14 Thread robert.kollataj at ac dot com.pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78359 --- Comment #2 from hugo74 --- (In reply to Andrew Pinski from comment #1) > Because > int Counter > > in the global scope is consider a tentative definition. What is meant by "tentative declaration" ? It is very misleading. It should not work

[Bug c/78359] Redeclaration of global variables is not reported

2016-11-14 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78359 --- Comment #1 from Andrew Pinski --- Because int Counter in the global scope is consider a tentative definition.