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

* Re: [9fans] Compiler bug - wrong error reporting
  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
  0 siblings, 1 reply; 8+ messages in thread
From: boyd, rounin @ 2004-03-05 13:57 UTC (permalink / raw)
  To: 9fans

> 7 static char **Files = 0;

err, who in their right mind codes the above?



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

* Re: [9fans] Compiler bug - wrong error reporting
  2004-03-05 13:57 ` boyd, rounin
@ 2004-03-05 14:03   ` David Presotto
  2004-03-05 14:09     ` David Tolpin
  0 siblings, 1 reply; 8+ messages in thread
From: David Presotto @ 2004-03-05 14:03 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 49 bytes --]

dinna matter, we should get the error line right.

[-- Attachment #2: Type: message/rfc822, Size: 2096 bytes --]

From: "boyd, rounin" <boyd@insultant.net>
To: <9fans@cse.psu.edu>
Subject: Re: [9fans] Compiler bug - wrong error reporting
Date: Fri, 5 Mar 2004 14:57:10 +0100
Message-ID: <007d01c402b9$c1a13770$67844051@SOMA>

> 7 static char **Files = 0;

err, who in their right mind codes the above?

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

* Re: [9fans] Compiler bug - wrong error reporting
  2004-03-05 14:03   ` David Presotto
@ 2004-03-05 14:09     ` David Tolpin
  2004-03-05 14:11       ` dbailey27
  2004-03-05 14:18       ` boyd, rounin
  0 siblings, 2 replies; 8+ messages in thread
From: David Tolpin @ 2004-03-05 14:09 UTC (permalink / raw)
  To: 9fans

> From: "boyd, rounin" <boyd@insultant.net>
>
> > 7 static char **Files = 0;
>
> err, who in their right mind codes the above?

Emden R. Gansner of AT&T Research. 


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

* Re: [9fans] Compiler bug - wrong error reporting
  2004-03-05 14:09     ` David Tolpin
@ 2004-03-05 14:11       ` dbailey27
  2004-03-05 16:06         ` Brantley Coile
  2004-03-05 14:18       ` boyd, rounin
  1 sibling, 1 reply; 8+ messages in thread
From: dbailey27 @ 2004-03-05 14:11 UTC (permalink / raw)
  To: dvd, 9fans


> Emden R. Gansner of AT&T Research. 

G. R. Emlin ...?



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

* Re: [9fans] Compiler bug - wrong error reporting
  2004-03-05 14:09     ` David Tolpin
  2004-03-05 14:11       ` dbailey27
@ 2004-03-05 14:18       ` boyd, rounin
  1 sibling, 0 replies; 8+ messages in thread
From: boyd, rounin @ 2004-03-05 14:18 UTC (permalink / raw)
  To: 9fans

> Emden R. Gansner of AT&T Research.

oh, i thought it was liz bimmler.  ho hum, i know NOTHING.



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

* Re: [9fans] Compiler bug - wrong error reporting
  2004-03-05 14:11       ` dbailey27
@ 2004-03-05 16:06         ` Brantley Coile
  2004-03-05 16:17           ` boyd, rounin
  0 siblings, 1 reply; 8+ messages in thread
From: Brantley Coile @ 2004-03-05 16:06 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 232 bytes --]

When I showed up for work at the labs, Dennis
was nice enough to ask G. R. if I could use
his ID badge for the day.  I spend a whole day
walking around with Mr. Emlin's badge and no one
thought the picture didn't look like me :)

[-- Attachment #2: Type: message/rfc822, Size: 2043 bytes --]

From: dbailey27@ameritech.net
To: dvd@davidashen.net, 9fans@cse.psu.edu
Subject: Re: [9fans] Compiler bug - wrong error reporting
Date: Fri, 5 Mar 2004 09:11:51 -0500
Message-ID: <171eddc6dcf57d066672f9677b82e7fb@yourdomain.dom>


> Emden R. Gansner of AT&T Research. 

G. R. Emlin ...?

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

* Re: [9fans] Compiler bug - wrong error reporting
  2004-03-05 16:06         ` Brantley Coile
@ 2004-03-05 16:17           ` boyd, rounin
  0 siblings, 0 replies; 8+ messages in thread
From: boyd, rounin @ 2004-03-05 16:17 UTC (permalink / raw)
  To: 9fans

i've just walked around with a red 'escort' (iirc) badge and nothing's ever
happened.  the rent-a-cops being more interesting in my accent than
security.



^ 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).