Menu

#54 Erroneous error: Use: Primitive: "use type" clause for xxx only used for primitive operations

Next Release
fixed
None
normal
minor
Always
none
Linux
2019-06-13
2019-06-10
No

A valid and justified "use type" clause raises the error:
t_asu.adb:8:12: Error: Use: Primitive: "use type" clause for Asu.Asu_Us only used for primitive operations

Besides, the message "only used" suggests that less wide visibility could be requested, but which one?
AFAIK "use" provides direct visibility to the whole package, "use all type" provides vibility to primitive operations and operators on the type, and "use type" provides visibility to primitive operators only. Correct? So we expect this kind of error to be raised on singke "use" clause that could be replaced by a "use all type". Here, we use ony direct visibility to primitive operators. Or am I missing something?

3 Attachments

Discussion

  • Jean-Pierre Rosen

    • status: new --> assigned
    • assigned_to: Jean-Pierre Rosen
     
  • Jean-Pierre Rosen

    • status: assigned --> fixed
    • Reproducibility: HaveNotTried --> Always
     

Anonymous
Anonymous

Add attachments
Cancel





Auth0 Logo