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: unassignedclangb...@nondot.org
          Reporter: curde...@gmail.com
                CC: blitzrak...@gmail.com, erik.pilking...@gmail.com,
                    llvm-bugs@lists.llvm.org, richard-l...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to