There are two FreeBSD ports that fail to compile with clang-6 with
errors that don't look like genuine C++ errors.
Here are the bug reports with attached testcases:
https://bugs.llvm.org/show_bug.cgi?id=36915
https://bugs.llvm.org/show_bug.cgi?id=36916
I suspect these are regressions.
Is it
On 03/27/18 02:43, Jonas Toth via cfe-users wrote:
I believe the default standard did change to c++14. How did you compile?
Could you make a case in godbolt.org?
I compiled without arguments. Adding -std=c++11 or -std=c++98 doesn't
change the error message.
Yuri
__
This testcase:
# include
# include
# define _I ((complex_t)(1i))
typedef std::complex complex_t;
complex_t f(const double omega) {
complex_t p = cos (omega) + _I * sin (omega);
return p;
}
works in clang40 and clang50, but fails in clang60:
c.c:9:32: error: implicit conversion from '_C