From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Date: 10 Sep 91 23:16:57 GMT From: ucivax!gateway@ucbvax.Berkeley.EDU (Jose Duarte) Subject: why are these unknown identifiers? Message-ID: <9109101616.aa26718@PARIS.ICS.UCI.EDU> List-Id: ----------------------------------------- package X is type DIRECTIONS is (UP,DOWN,LEFT,RIGHT); end X; ----------------------------------------- with X; package Y is subtype DIRECTIONS is X.DIRECTIONS; end Y; ----------------------------------------- with TEXT_IO; use TEXT_IO; with Y; procedure BUG is V1 : Y.Directions := Y.UP; -- Y.UP is unknown V2 : Y.Directions := Y.DOWN; -- Y.DOWN is unknown begin null; end BUG; Can someone tell me why "Y.UP" and "Y.DOWN" are unknown identifiers within the procedure BUG? I have to "with X" and then assign X.UP and X.DOWN to V1 and V2 in order to compile this. Why is this the case? Is this an Ada pecularity or a compiler bug? Thanks! JOSE DUARTE