[4070] in Athena Bugs

home help back first fref pref prev next nref lref last post

RT hc2.1s: missing error message

daemon@ATHENA.MIT.EDU (Ken Raeburn)
Mon Jan 29 12:04:14 1990

Date: Mon, 29 Jan 90 12:03:52 -0500
From: Ken Raeburn <Raeburn@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU

Version 2.1s of hc does not complain about the following code:

    extern i, j, k;
    void foo (void) {
	i = 1;
	int q;
    }

(Well, it warns that "q" isn't referenced.)

It should produce a warning message that standard C does not allow
declarations after statements in a single block.  (I am assuming here
that this is a "High C" extension.)

-- Ken

home help back first fref pref prev next nref lref last post