llvm-project
20c8e3c2 - [clang] Fix pointer comparisons between pointers to constexpr-unknown (#147663)

Commit
279 days ago
[clang] Fix pointer comparisons between pointers to constexpr-unknown (#147663) A constexpr-unknown reference can be equal to an arbitrary value, except values allocated during constant evaluation. Fix the handling. The standard is unclear exactly which pointer comparisons count as "unknown" in this context; for example, in some cases we could use alignment to prove two constexpr-unknown references are not equal. I decided to ignore all the cases involving variables not allocated during constant evaluation. While looking at this, I also spotted that there might be issues with lifetimes, but I didn't try to address it.
Author
Parents
Loading