[llvm-bugs] [Bug 43233] New: Clang crash on std::pow(n, -0.0)

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Sep 6 01:37:39 PDT 2019


            Bug ID: 43233
           Summary: Clang crash on std::pow(n, -0.0)
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: zamazan4ik at tut.by
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

For the code:

#include <cmath>

double t1(double n) {
    return std::pow(n, -0.0);

clang (trunk, 8.0) crashes with the follworing message:

clang 7.0 and below works fine.

Godbolt playground: https://godbolt.org/z/aRbTH0

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/20190906/fcdc3dab/attachment.html>

More information about the llvm-bugs mailing list