Thread View: gnu.gcc.bug
1 messages
1 total messages
Started by Byron Rakitzis
Tue, 18 Aug 1992 06:41
gcc-1.40: prototype declaring static & defining extern
Author: Byron Rakitzis
Date: Tue, 18 Aug 1992 06:41
Date: Tue, 18 Aug 1992 06:41
14 lines
724 bytes
724 bytes
Either ANSI C is too subtle for me, or this is a bug in gcc-1.40:
static int foo(void);
extern int main() {
return foo();
}
extern int foo() {
return 42;
}
This code fails to draw any warnings from gcc (even with -Wall). I am
running under SunOS-4.1.1 on a sparc-2.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads