[Bug c/58154] New: if declaration and definition of a function differ in scope, emit a warning

2013-08-14 Thread alexander.huemer at xx dot vu
: enhancement Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: alexander.huemer at xx dot vu Hi, i just stumbled upon a piece of code like this: static int foo(void); int foo(void) { volatile int a = 3; return

[Bug c/58154] if declaration and definition of a function differ in scope, emit a warning

2013-08-14 Thread alexander.huemer at xx dot vu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58154 Alexander Huemer alexander.huemer at xx dot vu changed: What|Removed |Added Resolution|INVALID |FIXED

[Bug c/58154] if declaration and definition of a function differ in scope, emit a warning

2013-08-14 Thread alexander.huemer at xx dot vu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58154 --- Comment #4 from Alexander Huemer alexander.huemer at xx dot vu --- Maybe I really do not correctly understand the difference between storage class and linkage. To me it seems like in one case the linkage of a function is inherited from