[7656] in Athena Bugs

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

Saber msg: v2.1 (4/24/89 m1-238-4 vax Unix 4042 0)

daemon@ATHENA.MIT.EDU (lerman@ATHENA.MIT.EDU)
Thu Jun 13 12:33:58 1991

From: lerman@ATHENA.MIT.EDU
Date: Thu, 13 Jun 91 12:33:41 -0400
To: bugs@ATHENA.MIT.EDU
Cc: haris@ATHENA.MIT.EDU, logcher@iesl.MIT.EDU, nhmw@ATHENA.MIT.EDU

Even when the ansi option is set, Saber doesn't allow initialization
of automatic structures.  The code
 
struct point3D p1  = {4.0, 5.0, 7.4};

gets an error message.  The gcc compiler doesn't complain.  The ANSI
standard clearly allows initialization of automatic structures.  This
is noted in K&R, 2nd edition on page 219.

			Steven R. Lerman
			lerman@athena.mit.edu

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