This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Multiple breakpoint locations
Vladimir Prus <ghost@cs.msu.su> writes:
> Andreas Schwab wrote:
>
>> Nick Roberts <nickrob@snap.net.nz> writes:
>>
>>> Yes, thanks. It seems strange to me that the return type needs to be
>>> specified. I thought with overloading, people talked about signature
>>> which is determined by the name and arguments but not the return type.
>>
>> For function templates the return type is part of the signature (it can
>> be parameterised with a template argument).
>
> I'm not sure it's true.
It is valid for function template instantiations to only differ in the
return type. See <http://gcc.gnu.org/ml/gcc-bugs/2003-06/msg02798.html>
for an example.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."