[llvm-bugs] [Bug 46554] New: Unsigned _Fract fixed point literals do not error even when they overflow
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jul 2 05:13:43 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=46554
Bug ID: 46554
Summary: Unsigned _Fract fixed point literals do not error even
when they overflow
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: bevin.hansson at ericsson.com
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
neeilans at live.com, richard-llvm at metafoo.co.uk
Given the code:
unsigned _Fract f = 2.0ur;
compiled with
clang -cc1 -ffixed-point
Clang should give an error saying that the fixed point literal is too large to
fit in the type. However, it does not.
This is probably an issue in NumericLiteralParser or SemaExpr.
--
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/20200702/197c8b70/attachment.html>
More information about the llvm-bugs
mailing list