Compiler bug

Wolf Herda wolf at galbp.UUCP
Thu May 2 03:23:58 AEST 1985


*** REPLACE THIS LINE WITH YOUR MESSAGE ***

I noticed this idiosyncrasy with regards to our C compiler.  Given the
following

>	int	a;
>	int	a;
>
>	main()
>	{
>		for (;;)
>			;
>	}

When compiling this, the compiler generates no error messages.  Seems
to me, it should give a "redeclaration of a" error message.  It does
give the error message, if the two int's are made automatic variables
(i.e., declared within main()).

Does anyone know why?  If it matters, this was done on a VAX 11/750
running 4.2BSD.
-- 

Wolf Herda
Lanier Business Products, Inc.
{gatech,akgua}!galbp!wolf
(404) 329-8254



More information about the Comp.unix mailing list