[PATCH] D35817: Ban implicit _Complex to scalar conversions in C++

Tim Northover via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 8 12:14:01 PDT 2017


t.p.northover added a comment.

> What's going on with the OpenMP test changes?

Compound assignment operators like "real /= complex" become illegal under the new rules (in C++) because somewhere there has to be an implicit conversion. I was pretty relieved to discover GCC also rejects the syntax because my change actually messes up the AST quite comprehensively if we wanted it to be legal (OpenMP does some weird stuff building its AST).


https://reviews.llvm.org/D35817





More information about the cfe-commits mailing list