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 c++/52792] New: this pointer and return pointer are passed in wrong order when ms_abi is used (x86_64)


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

             Bug #: 52792
           Summary: this pointer and return pointer are passed in wrong
                    order when ms_abi is used (x86_64)
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: piotr@codeweavers.com


Created attachment 27045
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27045
program that demonstrates the problem

When class function returns structure this pointer should be passed as first
argument. Pointer to memory used by returned value should be passed as second
argument. Currently gcc swaps these to parameters.


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