https://llvm.org/bugs/show_bug.cgi?id=31356

            Bug ID: 31356
           Summary: ICE on generic lambda, inheritance and trailing return
                    type
           Product: clang
           Version: trunk
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++14
          Assignee: unassignedclangb...@nondot.org
          Reporter: michele.ca...@gmail.com
                CC: llvm-bugs@lists.llvm.org
    Classification: Unclassified

Compiler crashes with the following, minimal example:

    template<typename Func>
    struct Base: Func {
        Base(Func func): Func{func} {}

        template<typename... Args>
        auto operator()(Args... args)
        -> decltype(Func::operator()(args...), void()) {
            Func::operator()(args...);
        }
    };

    int main() {
        auto l = [](auto &&) {};
        Base<decltype(l)> mixin{l};
        mixin(0);
    }

Note that it works as expected using the following lambda:

    auto l = [](int) {};

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to