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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to