Missing braces in Updates.h macro

Alastair Reid alastair at reid-consulting-uk.ltd.uk
Thu Sep 2 03:31:29 EDT 2004


On Thursday 02 September 2004 05:05, Donald Bruce Stewart wrote:
> > It is still a bit mysterious -- as the head is building fine on linux
> > each night. Any gcc hackers know why this could be? I'm using 2.95.3
> > here.

ANSI C (i.e., the 1980s standard and the language implemented by gcc 2.95) 
insists that declarations are at the start of a block.

C++, C99 and recent gccs generalise this and allow declarations anywhere in a 
block (and also in the first line of a for statement).

--
Alastair Reid


More information about the Cvs-ghc mailing list