[3127] in Athena Bugs

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

Saber-C 2.1

daemon@ATHENA.MIT.EDU (Marc Horowitz)
Thu Sep 7 14:56:08 1989

From: Marc Horowitz <marc%BEEBLEBROX.MIT.EDU@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
Reply-To: marc@ATHENA.MIT.EDU
Date: Thu, 07 Sep 89 14:55:39 EDT
On the Vax 6.3B packs, saber-c 2.1 has a bug.  Even after setopt ansi,
automatic variables cannot be initialized to structures:

"tty_filter.c":198, convert_desc_to_tty_str_info(), Automatic initialization (Er
ror #332)
   197: {
   198:     tty_str_info current_mode = { NULL, "", 0, 'l', 0 , 0};
                                                  ^
   199:     tty_str_info *temp;
The '{ ... }' construction cannot be use with automatic aggregates.

GCC will compile without error, and K&R Mark II explicitly allows this
on page 219, also stating that this was a new feature in the ANSI
draft.

		Marc

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