public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/28305]  New: GNAT bug when inlining instance of a generic subprogram
@ 2006-07-07 15:49 dewi dot daniels at silver-software dot com
  2006-07-11 11:03 ` [Bug ada/28305] " laurent at guerby dot net
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: dewi dot daniels at silver-software dot com @ 2006-07-07 15:49 UTC (permalink / raw)
  To: gcc-bugs

A GNAT bug is detected whenever pragma Inline is applied to an instance of a
generic subprogram and front-end inlining is activated (-gnatN).  The problem
can be worked around by either applying the pragma Inline to the generic
subprogram declaration or deactivating front-end inlining.

The test case I used is as follows:

gcc -c -gnatN test.ads

generic
  type T is private;
function A (Value : T) return T;

function A (Value : T) return T is
begin
  return Value;
end A;

with A;
pragma Elaborate_All (A);

function Test is new A (Integer);
pragma Inline (Test);


-- 
           Summary: GNAT bug when inlining instance of a generic subprogram
           Product: gcc
           Version: 3.4.5
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dewi dot daniels at silver-software dot com


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-04-09 14:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-07 15:49 [Bug ada/28305] New: GNAT bug when inlining instance of a generic subprogram dewi dot daniels at silver-software dot com
2006-07-11 11:03 ` [Bug ada/28305] " laurent at guerby dot net
2007-11-17 12:34 ` sam at rfc1149 dot net
2007-11-25 14:19 ` sam at gcc dot gnu dot org
2008-04-09 14:22 ` sam at gcc dot gnu dot org
2008-04-09 14:23 ` sam at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).