MSVC doesn't accept division by zero.
Details
Details
- Reviewers
Meinersbur awarzynski ChinouneMehdi - Group Reviewers
Restricted Project - Commits
- rG0a7d2b5f50a1: [flang][msvc] Fix compilation of external-hello-world test with MSVC.
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Division by zero is undefined behavior. I think this should use ,std::numeric_limits<double>::infinity() and std::numeric_limits<double>::quiet_NaN() (or the C macros INFINITY / NAN)