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

            Bug ID: 36915
           Summary: [possible regression] Simple complex numbers
                    expression fails
           Product: clang
           Version: 6.0
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]

Created attachment 20132
  --> https://bugs.llvm.org/attachment.cgi?id=20132&action=edit
testcase.cpp

The attached testcase worked in clang4 and clang5 fine, but it breaks in
clang6:

c.cpp:9:32: error: implicit conversion from '_Complex int' to 'double' is not
permitted in C++
  complex_t p = cos (omega) +  _I * sin (omega);
                               ^~
c.cpp:6:25: note: expanded from macro '_I'
#define _I ((complex_t)(1i))
            ~           ^~


Found this on FreeBSD 12 in one port.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to