Issue 242554
Summary [Clang][AST] StmtIteratorImpl operator== access both active and inactive member of union
Labels clang:frontend, undefined behaviour
Assignees
Reporter shafik
    As far as I can tell `operator==` in `StmtIteratorImpl` access both the inactive and active member of a union at the same time therefore invoking undefined behavior:

https://github.com/llvm/llvm-project/blob/05c73df0b28af4c4b8b45bbaa175395b4ac36e6b/clang/include/clang/AST/StmtIterator.h#L110-L113

It is not clear to me what the intent was looking at the commit that introduced the change: 92310454bf0f1
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to