Hi Richard, Still looking into this issue.
Our current understanding is that our initial bug was indirectly caused by the Ada front-end setting TREE_STATIC on a DECL_EXTERNAL constant, which it shouldn't do. The straightforward fix to that uncovered corner issues with the way we set DECL_CONTEXT in some special cases. Investigating further ... Thanks for your constructive feedback, Olivier