Skip to content

Assertion failed: (Exp != 0 && "Incorrect exponent 0 not handled"), function getPow, on std::pow(n, -0.0) #42578

@zamazan4ik

Description

@zamazan4ik
Bugzilla Link 43233
Resolution FIXED
Resolved on Sep 09, 2019 03:54
Version trunk
OS Linux
Blocks #41819
CC @DougGregor,@DimitryAndric,@zmodem,@RKSimon,@zygoloid,@rotateright

Extended Description

For the code:

#include

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

clang (trunk, 8.0) crashes with the follworing message: https://pastebin.com/w7nVhwtu

clang 7.0 and below works fine.

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

Metadata

Metadata

Assignees

Labels

bugzillaIssues migrated from bugzilla

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions