This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug ada/48995] New: Function called twice during initialization of an allocated packed unconstrained array.


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

           Summary: Function called twice during initialization of an
                    allocated packed unconstrained array.
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: rodakay@tpg.com.au


Created attachment 24246
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24246
simple test case code

Please see the attached archive for a reproducer of this issue.

The expected output can be obtained by constraining the declaration of
Media.Image, or by removing the "pragma Pack (Image);" from the
specification of the Media package.

It is understood that this problem has been resolved within AdaCores private
codebase.


Discussion on 'comp.lang.ada' of the problem may be found at:

http://groups.google.com/group/comp.lang.ada/browse_thread/thread/75d2eb9e2e52a8c5#


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]