+2019-08-19 Eric Botcazou <ebotcazou@adacore.com>
+
+ * exp_dist.adb (Build_Package_Stubs): Do not specifically visit
+ the declarations of an N_Subprogram_Instantiation node.
+
2019-08-19 Bob Duff <duff@adacore.com>
* doc/gnat_ugn/gnat_utility_programs.rst: Document missing
when N_Package_Declaration =>
-- Case of a nested package or package instantiation coming
- -- from source. Note that the anonymous wrapper package for
- -- subprogram instances is not flagged Is_Generic_Instance at
- -- this point, so there is a distinct circuit to handle them
- -- (see case N_Subprogram_Instantiation below).
+ -- from source, including the wrapper package for an instance
+ -- of a generic subprogram.
declare
Pkg_Ent : constant Entity_Id :=
end if;
end;
- when N_Subprogram_Instantiation =>
-
- -- The subprogram declaration for an instance of a generic
- -- subprogram is wrapped in a package that does not come from
- -- source, so we need to explicitly traverse it here.
-
- if Comes_From_Source (Decl) then
- Visit_Nested_Pkg (Instance_Spec (Decl));
- end if;
-
when others =>
null;
end case;