Skip to content

Commit 16eaeca

Browse files
committed
[Clang] Added comment and updated the clang release notes
1 parent 4e5935f commit 16eaeca

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -926,6 +926,7 @@ Bug Fixes to C++ Support
926926
(`LWG3929 <https://wg21.link/LWG3929>`__.) (#GH121278)
927927
- Clang now identifies unexpanded parameter packs within the type constraint on a non-type template parameter. (#GH88866)
928928
- Fixed an issue while resolving type of expression indexing into a pack of values of non-dependent type (#GH121242)
929+
- Fixed a crash when __PRETTY_FUNCTION__ or __FUNCSIG__ (clang-cl) appears in the trailing return type of the lambda (#GH121274)
929930

930931
Bug Fixes to AST Handling
931932
^^^^^^^^^^^^^^^^^^^^^^^^^

clang/lib/AST/Expr.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,9 @@ std::string PredefinedExpr::ComputeName(PredefinedIdentKind IK,
775775
if (const FunctionDecl* Pattern = FD->getTemplateInstantiationPattern())
776776
Decl = Pattern;
777777

778+
// Bail out if the type of the function has not been set yet.
779+
// This can notably happen in the trailing return type of a lambda
780+
// expression.
778781
const Type *Ty = Decl->getType().getTypePtrOrNull();
779782
if (!Ty)
780783
return "";

0 commit comments

Comments
 (0)