This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB 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++/15244] New: implicit conversions in c++


http://sourceware.org/bugzilla/show_bug.cgi?id=15244

             Bug #: 15244
           Summary: implicit conversions in c++
           Product: gdb
           Version: unknown
            Status: NEW
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned@sourceware.org
        ReportedBy: tromey@redhat.com
    Classification: Unclassified


gdb does not support implicit conversions in c++.
For example this is valid:

struct q {
  operator int()
  {
    return 23;
  }

  q() { }
  q(int z) { }
};

extern int x(int);
extern int y(q);

int callx()
{
  q qval;
  return x(qval) + y(23);
}

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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