http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=140916
seems to break ABI, e.g. 4.4 compiled digikam can't be linked against 4.3
compiled libraries.
struct B
{
  int b;
};

B b;

struct A
{
  B *operator->() const
  {
    return &b;
  }
  A () {}
};

A a;

int foo ()
{
  return a->b;
}

is mangled as _ZNK1AptEv in g++ 4.3 and below, but as
_ZNK1AdtEv in g++ 4.4.


-- 
           Summary: [4.4 Regression] Mangling changes break ABI
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: ABI
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org


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

Reply via email to