Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions clang/lib/Sema/SemaTemplate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4383,6 +4383,11 @@ Sema::CheckVarTemplateId(VarTemplateDecl *Template, SourceLocation TemplateLoc,
};

if (VarDecl *Var = Template->getTemplatedDecl();
// Skipping std::format_kind in libstdc++ is a hack for
// GH139067 / https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120190
!(Var->getName() == "format_kind" &&
Var->getDeclContext()->isStdNamespace() &&
PP.isMacroDefined("__GLIBCXX__")) &&
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be great if we could find some sort of way to check the actual VERSION of the hack once they fix this, but it doesn't look like they have a fix in flight.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clang you add something like // HACK workaround libstdc++ 14.x (2025-02) so it's easier to find?

ParsingInitForAutoVars.count(Var) &&
llvm::equal(
CTAI.CanonicalConverted,
Expand Down
Loading