[all-commits] [llvm/llvm-project] cad094: [sema] enhance error handling for compound stmt bo...

Congcong Cai via All-commits all-commits at lists.llvm.org
Tue Oct 29 23:34:40 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cad09404cc804dd35d2f3b742d1d6efb6d5a9449
      https://github.com/llvm/llvm-project/commit/cad09404cc804dd35d2f3b742d1d6efb6d5a9449
  Author: Congcong Cai <congcongcai0907 at 163.com>
  Date:   2024-10-30 (Wed, 30 Oct 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Parse/ParseStmt.cpp
    A clang/test/SemaCXX/gh113468.cpp

  Log Message:
  -----------
  [sema] enhance error handling for compound stmt body in `StmtExpr` (#113760)

Mark the whole StmtExpr invalid when the last statement in compound
statement is invalid.
Because the last statement need to do copy initialization, it causes
subsequent errors to simply ignore last invalid statement.

Fixed: #113468



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list