[Issue 5089] New: feqrel does not compile for floats
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Oct 20 16:07:50 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5089
Summary: feqrel does not compile for floats
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: ah08010-d at yahoo.com
--- Comment #0 from Austin Hastings <ah08010-d at yahoo.com> 2010-10-20 16:07:10 PDT ---
With 2.049, this code:
==========
module scratch;
import std.math;
void foo() {
float a = 1, b = 1.00000000001;
auto same = feqrel( a, b ) > 15;
}
==========
Emits this diagnostic:
==========
$ dmd scratch.d
d:\Devel\D\dmd2\windows\bin\..\..\src\phobos\std\math.d(3286): Error: function
std.math.feqrel!(float).feqrel has no return statement, but is expected to
return a value of type int
d:\Devel\D\dmd2\windows\bin\..\..\src\phobos\std\math.d(8): Error: template
instance std.math.feqrel!(float) error instantiating
==========
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list