[PATCH] D45712: Diagnose invalid cv-qualifiers for friend decls.

Eli Friedman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 9 14:48:52 PDT 2018


efriedma added a comment.

I thought the template case wasn't using the same codepath, but apparently I was just confusing myself.  The exact form "template <typename T> friend class Y;" triggers an early out in Sema::ActOnFriendTypeDecl, so my code wasn't getting hit. I'll revise accordingly.


Repository:
  rC Clang

https://reviews.llvm.org/D45712





More information about the cfe-commits mailing list