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: unassignedclangb...@nondot.org
          Reporter: richard-l...@metafoo.co.uk
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to