This is an archive of the discontinued LLVM Phabricator instance.

Remove libstdc++ friend template hack
ClosedPublic

Authored by urnathan on Apr 27 2021, 12:34 PM.

Details

Summary

This is another hack to workaround an old libstdc++ bug. As the comment says, this is a libstdc++ 4.2 defect. It looks like it was fixed in 2010 by Paolo Carlini ab65a4c7bdf1. As we've specified libstdc++ 4.8.3 is the Low Water Mark, this can go. I kept the testcase just to make sure there's nothing special any more.

Diff Detail

Event Timeline

urnathan requested review of this revision.Apr 27 2021, 12:34 PM
urnathan created this revision.
rsmith added inline comments.Apr 27 2021, 1:13 PM
clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
1519–1520

This variable appears to always be false now. Can it be removed too?

urnathan updated this revision to Diff 341135.Apr 28 2021, 4:01 AM

Richard, you are correct, I should have looked more. This update removes that boolean

urnathan marked an inline comment as done.Apr 28 2021, 4:02 AM
This revision is now accepted and ready to land.Apr 30 2021, 10:48 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMay 3 2021, 4:20 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript