[PATCH] D68896: PR43080: Do not build context-sensitive expressions during name classification.

Kian Moniri via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 30 11:41:02 PDT 2019


kianm added a comment.

Hi,

There is a problem with this commit because it asserts after errors have been recognized. I have attached a reduced test case. The assertion looks to occur here:

  clang: /home/kianm/llvm/dev/llvm-project/clang/lib/Parse/ParseExprCXX.cpp:585: clang::ExprResult clang::Parser::tryParseCXXIdExpression(clang::CXXScopeSpec &, bool, clang::Token &): Assertion `SS.isEmpty() && "undeclared non-type annotation should be unqualified"' failed.

The reproducible command is:

  clang -cc1 -x c++ reduced.c

F10590725: reduced.c <https://reviews.llvm.org/F10590725>


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D68896





More information about the cfe-commits mailing list