Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!uwm.edu!bionet!agate!darkstar!saturn.ucsc.edu!sidney From: sidney@saturn.ucsc.edu (Sidney Markowitz ) Newsgroups: comp.lang.c++ Subject: Re: Problems of Zortech C++ v2.1 Message-ID: <5234@darkstar.ucsc.edu> Date: 18 Jul 90 07:14:00 GMT References: <82035@tut.cis.ohio-state.edu> <31714@cup.portal.com> <1331@proto.COM> Sender: usenet@darkstar.ucsc.edu Distribution: na Organization: University of California, Santa Cruz Lines: 18 In article <1331@proto.COM> joe@proto.COM (Joe Huffman) writes: >Also, relying on a bug in Turbo C++ and >unportable assumptions about conversion from integral to float types seems >a bit risky to me. You should be grateful that the Zortech compiler >pointed them out to you. Just to set the record straight, TC++ does correctly detect the ambiguity when you overload a function on types double and unsigned short, then call it with an integer constant. So your assumption that that is what his code looked like when he ported seems to be incorrect, and there must be some explanation other than a bug in TC++ as well as in Cfront to explain why those compilers handled his program ok while Zortech 2.06 produced error messages or internal diagnostics about a compiler bug. I would tend to believe Walter Bright's message containing the one line correction to one of the compiler's asm files. -- sidney markowitz