https://bugs.llvm.org/show_bug.cgi?id=51465

            Bug ID: 51465
           Summary: Clang should not warn "capture 'this' is not used" if
                    it is used in another branch of if-constexpr.
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++2a
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]

The following will fail to compile, even though the member "p" is used in
another branch of the if-constexpr: https://godbolt.org/z/hWbjbWYjq

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to