[all-commits] [llvm/llvm-project] 63342a: Fix a failing assertion with implicit function def...

Aaron Ballman via All-commits all-commits at lists.llvm.org
Fri Jun 23 04:04:59 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 63342ae4b8f7573fd03fdb6eb38d55097b9a6922
      https://github.com/llvm/llvm-project/commit/63342ae4b8f7573fd03fdb6eb38d55097b9a6922
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2023-06-23 (Fri, 23 Jun 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaDecl.cpp
    M clang/test/Sema/implicit-decl.c

  Log Message:
  -----------
  Fix a failing assertion with implicit function definitions

When implicitly defining a function in C, we would try to find an
appropriate declaration context for the function to be declared within.
However, we did not account for GNU statement expressions, which
masquerade as a compound statement and can be used in other contexts
such as within structure member declarations.

Fixes https://github.com/llvm/llvm-project/issues/48579




More information about the All-commits mailing list