AIX C:constant expr in array decl breaks cc

Oleg Kiselev oleg at gryphon.COM
Thu Oct 19 19:03:48 AEST 1989


In article <184 at eliza.edvvie.at> johnny at edvvie.at (Johann Schweigl) writes:
>Is there *formally* anything wrong with the following global declaration:
>void (*foo[2][0 + 1 + 1 + 1])() = {{ fun1, fun2, fun3 },{ fun4, fun5, fun6}};
>AIX C will not compile this but issue an error saying a '}' is missing on
>both initialization lines.

This works on AIX/370 and AIX/PS2.

-- 
			"No regrets, no apologies"   Ronald Reagan

Oleg Kiselev            ARPA: lcc.oleg at seas.ucla.edu, oleg at gryphon.COM
(213)337-5230           UUCP: [world]!{ucla-se|gryphon}!lcc!oleg



More information about the Comp.lang.c mailing list