9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Compiler bug - wrong error reporting
@ 2004-03-05 13:43 David Tolpin
  2004-03-05 13:57 ` boyd, rounin
  0 siblings, 1 reply; 8+ messages in thread
From: David Tolpin @ 2004-03-05 13:43 UTC (permalink / raw)
  To: 9fans


1	extern char **Files;
2	
3	typedef struct {
4		char **Files;
5	} Ta;
6	
7	static char **Files = 0;

 8c -c test.c
test.c:7 external redeclaration of: Files
	STATIC IND IND CHAR test.c:7
	EXTERN IND IND CHAR test.c:4

I.e. instead of reporting 1st and 7th lines with conflicting
declarations, the compiler reports the 7th line and a field
in struct, which is from a different space.

David


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

end of thread, other threads:[~2004-03-05 16:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-05 13:43 [9fans] Compiler bug - wrong error reporting David Tolpin
2004-03-05 13:57 ` boyd, rounin
2004-03-05 14:03   ` David Presotto
2004-03-05 14:09     ` David Tolpin
2004-03-05 14:11       ` dbailey27
2004-03-05 16:06         ` Brantley Coile
2004-03-05 16:17           ` boyd, rounin
2004-03-05 14:18       ` boyd, rounin

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 NNTP newsgroup(s).