Piotr Trojanek <[email protected]> writes:

> Two more tests on which parser fails.
>
> package Boolean_Expression_Functions is
>       function F1 (V : Integer) return Boolean
>       is (V = V and then True)
>       or else True;

>       function F2 (V : Integer) return Boolean
>       is (True and then True)
>       or else True;

> end Boolean_Expression_Functions;

This is a GNAT bug; there is supposed to be parentheses surrounding the
entire expression (confirmed by Bob Duff of AdaCore on comp.lang.ada).

-- 
-- Stephe

_______________________________________________
Emacs-ada-mode mailing list
[email protected]
http://host114.hostmonster.com/mailman/listinfo/emacs-ada-mode_stephe-leake.org

Reply via email to