This is an archive of the discontinued LLVM Phabricator instance.

Fix build failure with GCC 11 in C++20 mode
ClosedPublic

Authored by Godin on Dec 8 2021, 8:36 AM.

Diff Detail

Event Timeline

Godin created this revision.Dec 8 2021, 8:36 AM
Godin requested review of this revision.Dec 8 2021, 8:36 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptDec 8 2021, 8:36 AM
Godin added a reviewer: rsmith.Dec 8 2021, 9:39 AM
shafik added a comment.Dec 9 2021, 6:29 PM

LGTM but I want to give a chance for others to chime in.

Godin added a comment.Dec 10 2021, 5:52 AM

Thank you for the review @shafik !

As a note: this change is similar to the https://reviews.llvm.org/rG95d0d8e9e9d10da3cfa503fbba405e740aea3cc1 by @rsmith

shafik accepted this revision.Dec 10 2021, 9:09 AM
This revision is now accepted and ready to land.Dec 10 2021, 9:09 AM
dexonsmith accepted this revision.Dec 10 2021, 9:54 AM

LGTM too.

clang/lib/AST/ASTImporter.cpp
8412–8415

Might be nice to remove the implied <T>s in the parameters/returns (here and elsewhere) as a follow up; a bit noisy to read those, even if it doesn't cause a build failure (probably separately from this patch).

Can someone please commit this on my behalf since I do not have commit rights?

clang/lib/AST/ASTImporter.cpp
8412–8415

Thank you for the review @dexonsmith !

I will also prefer such cleanup to be done separately.

This revision was automatically updated to reflect the committed changes.