From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: -fdump-ada-spec Date: Tue, 07 Oct 2014 17:05:36 +0100 Organization: A noiseless patient Spider Message-ID: References: <85iojwkm66.fsf@stephe-leake.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx05.eternal-september.org; posting-host="865ecc8333c04b7dc8d5f87fc772110b"; logging-data="17091"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19NTUdYM3UQqYYbzSrx3vyA2Fx6HssLcS8=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) Cancel-Lock: sha1:6qs/tVnQyV042EKTfqomOoiG5Ic= sha1:OpST98t1Ahx0O/5I4ibUOtMGwds= Xref: news.eternal-september.org comp.lang.ada:22179 Date: 2014-10-07T17:05:36+01:00 List-Id: Stephen Leake writes: > Simon Wright writes: > >> Does anyone know where this is implemented in the GCC sources? > > I don't; I guess you want to develop a patch? Not really; just to understand it better! For example, you may have taken the online manual's remark "C++ classes will be mapped to Ada tagged types" as gospel; it turns out that this only happens for C++ classes with virtual methods. I think. >> >> >> and the 'limited with' magic only works for _types_, so you get the >> error '"FILE" not declared in "Stdio"'. >> >> Stdio.FILE should be declared as >> >> type FILE is new Blah; Thinking about it, that doesn't match the 'semantics' of typedef. > As a workaround, you can maintain a patch for the generated code, and > apply it in your Makefile. Actually, an editor script to change 'limited with' to plain 'with' would sort this one out nicely.