Skip to content

Commit 9f0c3ed

Browse files
committed
update comments
1 parent d2928d9 commit 9f0c3ed

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ Bug Fixes to C++ Support
718718
missing placeholder return type. (#GH78694)
719719
- Fixed a bug where bounds of partially expanded pack indexing expressions were checked too early. (#GH116105)
720720
- Fixed an assertion failure caused by invalid default argument substitutions in non-defining
721-
friend declarations. (#GH113324).
721+
friend declarations. (#GH113324)
722722

723723
Bug Fixes to AST Handling
724724
^^^^^^^^^^^^^^^^^^^^^^^^^

clang/lib/Sema/SemaTemplateInstantiateDecl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4695,8 +4695,8 @@ bool Sema::InstantiateDefaultArgument(SourceLocation CallLoc, FunctionDecl *FD,
46954695
// FIXME: We don't track member specialization info for non-defining
46964696
// friend declarations, so we will not be able to later find the function
46974697
// pattern. As a workaround, don't instantiate the default argument in this
4698-
// case. This is correct per wording and only an error recovery issue, as per
4699-
// [dcl.fct.default]p4:
4698+
// case. This is correct per the standard and only an issue for recovery
4699+
// purposes. [dcl.fct.default]p4:
47004700
// if a friend declaration D specifies a default argument expression,
47014701
// that declaration shall be a definition.
47024702
if (FD->getFriendObjectKind() != Decl::FOK_None &&

0 commit comments

Comments
 (0)