clang-concepts-monorepo icon indicating copy to clipboard operation
clang-concepts-monorepo copied to clipboard

****** OBSOLETE - CONCEPTS HAS BEEN MERGED INTO CLANG TRUNK AND DEVELOPMENT CONTINUES THERE ****** This fork of llvm-project contains my implementation of C++2a Concepts for the Clang compiler, and wi...

Results 30 clang-concepts-monorepo issues
Sort by recently updated
recently updated
newest added

The following translation unit has several problems: ``` template concept one = true; template concept two = true; auto accepts_1 = [](one auto) {}; auto should_reject_1 = [](one auto) {};...

https://godbolt.org/z/3KQF-g ``` #include #include #include #include #include #include using std::cout; int main() { using namespace ranges; int sum = accumulate(views::ints(1, unreachable) | views::transform([](int i) { return i * i; })...

``` void test() { void (*func)(auto) = [](auto x) {}; } ``` crashes the compiler after triggering this assert: ``` clang-10: llvm-project/clang/lib/AST/Type.cpp:2056: bool clang::Type::isConstantSizeType() const: Assertion `!isDependentType() && "This doesn't...

``` template concept Foo = false; Foo auto should_reject_1(Foo auto) { return 'a'; } template Foo auto should_reject_2() { return 'a'; } template F should_reject_3() { return 'a'; } template...

Small improvements for constrained implicit deduction guides. This fixes the following issues: 1) https://github.com/saarraz/clang-concepts-monorepo/issues/17 2) https://github.com/saarraz/clang-concepts-monorepo/issues/41 3) Crash when loading .pch files with concepts (not in tracker)

# Motivation Consider ```cpp template concept invocable = requires(F&& f, Args&&... args) { invoke(std::forward(f), std::forward(args)...); }; ``` If a type does not satisfy the above requirement, then a diagnostic like...

https://godbolt.org/z/K0Yk2V In the above example, it appears the concept constraints are not being validated in either lambda expression. I would have expected this example to fail compilation, suggesting that "struct...

The following code warns for `f` but not for `g` with `-Wunused-parameter`: ``` void f(int x [[maybe_unused]], auto) { } void g(int x [[maybe_unused]]) { } ``` outputting: ``` :1:12:...

help wanted

This part of concepts doesn't work: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p0848r3.html Both aspects don't work: Clang rejects `Meow` because `std::string` doesn't match the requirements of the first constructor, even though it does match the...

Following code generates ambiguous call error in the recent node of "concepts" branch (c01a40b29a0). But it compiles ok in the version of the compiler explorer (godbolt.org) site ! I do...