[PATCH] D83025: [clang] Include type specifiers in typo correction when checking isCXXDeclarationSpecifiers.

Alexandre Ganea via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 11 09:45:45 PST 2020


aganea added a comment.

We're seeing the same issue mentionned in PR45498 <https://bugs.llvm.org/show_bug.cgi?id=45498>, but with the repro below. `git bisect` points to this patch. Could anyone please possibly confirm? Simply build clang with `-DLLVM_ENABLE_ASSERTIONS=ON`.

  // compile with: clang-cl /c a.cpp
  template < a > struct b;
  template < bool a, class > using c = b< a >;
  template < class > using d = void ;
  template < class, class, class = void >
  bool e template < class f, class g >
  bool e< f, g, d< decltype(h(g())) > > template < class f, class g >
  void i(f, g ) {
    e< f, g >
  }
  template < class _BidIt2, c< e< _BidIt, _BidIt2 >, int > = 0 >
  void h(_BidIt2) short do_tolower__Last {
    i(do_tolower__First, do_tolower__Last)
  }


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D83025/new/

https://reviews.llvm.org/D83025



More information about the cfe-commits mailing list