Paul Pluzhnikov <[EMAIL PROTECTED]> writes:
> Arguably this is not very elegant, but it works.
Here is a marginaly more "elegant" way:
Compile units-04.cfail.cpp with:
$ /usr/local/gcc-3.2/bin/g++ -S -gstabs units-04.cfail.cpp
Examine resulting units-04.cfail.s:
egrep 'stabn|call.*_ZNK5UnitsILi0ELi0ELi0ELi1ELi0EEcvdEv' units-04.cfail.s |
grep -B1 call
On my machine this results in:
.stabn 68,0,13,.LM4-main
call _ZNK5UnitsILi0ELi0ELi0ELi1ELi0EEcvdEv
call _ZNK5UnitsILi0ELi0ELi0ELi1ELi0EEcvdEv
This tells you that the 2 calls to the offending 'operator double()'
come from line 13 in the source.
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
_______________________________________________
Help-gplusplus mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gplusplus