Yitzhak Mandelbaum

Results comments of Yitzhak Mandelbaum

Thanks! Interestingly, you're the third person to notice this today. @sgatev has the fix: https://reviews.llvm.org/D128833

This was fixed in commit 84dd12b29064095cdef3949e8fd5c91b93f36004.

Not offhand, but any chance you can give me the full backtrace from the print out above before i try the attached zip file?

The code is hitting this assert: https://github.com/llvm/llvm-project/blob/2a0c0849747425b570561e6bd9869843131a880d/clang/lib/Analysis/FlowSensitive/Models/UncheckedOptionalAccessModel.cpp#L464 Its unclear, though, why the constructor decl is missing template arguments. Trying to figure that out now.

It turns out that this was matching on a _different_ `base::Optional`, nested inside of another namespace. This `base::Optional` has simpler constructors which are not themselves templated and, therefore, violate the...

This issue was fixed by [cd22e0d](https://github.com/llvm/llvm-project/commit/cd22e0dc9d0b5487eb2d54dd028a2aa439627159)

Thanks for reporting this! FWIW, https://reviews.llvm.org/rG0e286b77cf7bebca568b60ac81c1717291040bc3 added support for structured bindings. We'll see if we can replicate this in the tests and get it fixed. @sgatev

Here's a further reduced version that also fails. Basically, it desugars the structured bindings into calls to `get`, which is the source of the problem. Our code only supports `MemberExpr`...

Fixed in ef4635452f3a23ee29f7586148e19e8c84471a59.

Patch to add support for `operator==` and `operator!=`: https://reviews.llvm.org/D139360