This is the mail archive of the gdb-patches@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]

Re: [RFA 3/3] c++/13356: Update documentation


> Date: Thu, 16 Aug 2012 13:51:06 -0700
> From: Keith Seitz <keiths@redhat.com>
> CC: gdb-patches@sourceware.org
> 
> On 08/16/2012 01:44 PM, Eli Zaretskii wrote:
> >> Date: Thu, 16 Aug 2012 13:15:53 -0700
> >> From: Keith Seitz <keiths@redhat.com>
> >>
> >> +The second example fails because the integer constant @samp{0x1234} is not
> >> +type-compatible with the pointer parameter type.
> >
> > Why not? if the current language is C, I see no incompatibilities
> > here.  What am I missing?
> 
> That conversion is forbidden by C++. Perhaps I should have used a method 
> call instead to make that more obvious?

Yes, that would be good.  And/or explicitly tell that C++ forbids
that.

Thanks.


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