[llvm-bugs] [Bug 34095] New: [APFloat] Unit tests use integer overload with floating-point literals.

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Aug 7 00:20:37 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=34095

            Bug ID: 34095
           Summary: [APFloat] Unit tests use integer overload with
                    floating-point literals.
           Product: libraries
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Support Libraries
          Assignee: unassignedbugs at nondot.org
          Reporter: edy.burt at gmail.com
                CC: llvm-bugs at lists.llvm.org

Constructor invocations such as `APFloat(APFloat::IEEEdouble(), 0.0)` have a
float literal (only `0.0`, `1.0` and `3.0` in all the unit tests) in the source
but the overload they reach is actually the `integerPart` one, *not* a `float`
or `double` overload (which only exists when `fltSemantics` *aren't* passed).

The values they're used with *happen* to be all integers and they do work, but
the unit tests are a bit misleading.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170807/c1d20b2d/attachment.html>


More information about the llvm-bugs mailing list