[llvm-bugs] [Bug 44822] New: Assertion failure in Parser.h:941: !isActive && "Forgot to call Commit or Revert!" when using concepts
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Feb 7 05:46:08 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=44822
Bug ID: 44822
Summary: Assertion failure in Parser.h:941: !isActive &&
"Forgot to call Commit or Revert!" when using concepts
Product: clang
Version: 10.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: C++2a
Assignee: unassignedclangbugs at nondot.org
Reporter: curdeius at gmail.com
CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk
Created attachment 23105
--> https://bugs.llvm.org/attachment.cgi?id=23105&action=edit
run script
I get the following assertion failure in parser on Windows:
```
Assertion failed: !isActive && "Forgot to call Commit or Revert!", file
C:\src\llvm_package_1000-rc1\llvm-project\clang\include\clang/Parse/Parser.h,
line 941
```
It happens with this minimized snippet:
```
template <typename _Ty>
using iter_reference_t = decltype(*::std::declval<_Ty &>());
template <class _It> concept _Cpp17_input_iterator = requires(_It) {
typename common_reference_t<iter_reference_t<_It> &&,
typename _It::value_type &>;
};
```
Initially run with clang-tidy (10.0.0-rc1):
```
clang-tidy bug-pre.cpp -checks=-*,readability-braces-around-statements --
-std=c++2a -x c++
```
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200207/d5ebf470/attachment.html>
More information about the llvm-bugs
mailing list