[llvm-bugs] [Bug 36915] New: [possible regression] Simple complex numbers expression fails
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Mar 26 23:21:38 PDT 2018
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: unassignedclangbugs at nondot.org
Reporter: yuri at tsoft.com
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180327/f513fdd6/attachment-0001.html>
More information about the llvm-bugs
mailing list