[Bug ada/59671] Improper Ada behavior under -gnat2012

ebotcazou at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Jan 5 22:03:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59671

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #3 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> Exactly why I marked this as blocker. There is no workaround. -gnat2012 will
> not compile properly, plain and simple. Adding "out" to a parameter of a
> function results in this error. Stepping back to -gnat2005 is not a
> workaround, it's moving to a different language; it's a less severe form of
> moving from, say Ada to ALGOL.

I'm sure there is a simple workaround though, like turning the function into a
procedure.  Blocker really means blocker.

> I disagree with this being a duplicate, as the problem in that report, which
> I read prior to filing this one, is an issue with pragmas behavior, while
> this is with "out" parameters of functions; these are not the same thing.
> Two different issues are reporting the same error message; the error message
> is what is common, not the error.

Then please avoid confusing the matter by writing "I've faced an almost
identical problem" and providing no way for anyone to reproduce your problem. 
Until we can reproduce it, we'll treat this PR as a duplicate of the other.

*** This bug has been marked as a duplicate of bug 58151 ***



More information about the Gcc-bugs mailing list