This is an archive of the discontinued LLVM Phabricator instance.

[Sema] Fix a crash in access checking for deduction guides
ClosedPublic

Authored by ilya-biryukov on Feb 12 2019, 2:41 AM.

Diff Detail

Repository
rC Clang

Event Timeline

ilya-biryukov created this revision.Feb 12 2019, 2:41 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 12 2019, 2:41 AM
sammccall accepted this revision.Feb 12 2019, 2:58 AM
sammccall added inline comments.
clang/lib/Sema/SemaDeclCXX.cpp
3178 ↗(On Diff #186430)

this isn't quite trivial, you might want to short circuit with &&, checking AS != TD->getAccess() first?
I don't think readability is too bad if you keep the existing comment.

This revision is now accepted and ready to land.Feb 12 2019, 2:58 AM
ilya-biryukov marked an inline comment as done.
  • Address comments
This revision was automatically updated to reflect the committed changes.