[llvm-bugs] [Bug 34905] New: [fuzz] tautological comparison warning asserts on comparison between _Complex and enum

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Oct 10 12:43:46 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=34905

            Bug ID: 34905
           Summary: [fuzz] tautological comparison warning asserts on
                    comparison between _Complex and enum
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: richard-llvm at metafoo.co.uk
                CC: llvm-bugs at lists.llvm.org

Found by oss-fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3368

Here's a cleaned-up version of the testcase:

enum { t };
bool b = 3.i < t;

There are two bugs here. First, we should never have built a relational
comparison expression between a _Complex double and an enumerator at all.

But the assert is also bogus; it fires for this (valid) code:

enum { t };
bool b = 3.i == t;

-- 
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/20171010/1eb040a0/attachment.html>


More information about the llvm-bugs mailing list