🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.lib.bug
Article #529

problem with 'log()' in tRational.cc

#529
From: Webster Dove
Date: Tue, 06 Jun 1989 00:42
16 lines
1059 bytes
I got this from g++-1.35.0.

cd /nfs/asp_2/disk_a/local/src/gnu/libg++-1.35.0/tests/
make tRational
g++ -g -O -fchar-charconst -I../g++-include -I. -fstrength-reduce -c  tRational.cc
In function void etest (long int):
tRational.cc:168: call of overloaded `log' is ambiguous
tRational.cc:169: call of overloaded `log' is ambiguous
*** Error code 1
make: Fatal error: Command failed for target `tRational.o'

Compilation exited abnormally with code 1 at Mon Jun  5 19:35:57

Casting approxe to (double) eliminated the error message, but I don't
understand why it was ambiguous.  There is only one form of log
defined as far as I can tell.
Technical Details
Message-ID: <8906060042.AA11534@rocket.sanders.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!UUNET.UU.NET!rocket!dove

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!UUNET.UU.NET!rocket!dove
From: rocket!dove@UUNET.UU.NET (Webster Dove)
Newsgroups: gnu.g++.lib.bug
Subject: problem with 'log()' in tRational.cc
Message-ID: <8906060042.AA11534@rocket.sanders.com>
Date: 6 Jun 89 00:42:07 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 16