[clang] [Clang][Sema] Make _Imag int/float LValue not assignable (PR #218270)
Shafik Yaghmour via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 1 13:50:51 PDT 2026
https://github.com/shafik commented:
It feels a bit wonky that this is only an error on assignment. The gcc docs are not particularly informative here: https://gcc.gnu.org/onlinedocs/gcc/Complex.html
I think I would have liked to see a diagnostic saying "hey you are using __imag__ with a non complex type"
https://github.com/llvm/llvm-project/pull/218270
More information about the cfe-commits
mailing list