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

            Bug ID: 39769
           Summary: Generic lambda in variable template in class template
                    does not compile
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++14
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]

I encountered a bug on Clang trunk (from Godbolt) where a template variable
defined inside a template class created with a generic lambda does not compile.
I got this message :

note : candidate template ignored: couldn't infer template argument ''
    static constexpr auto var = [] (auto i) {

                                ^

Having a non-template class, a non-template variable or a non-generic lambda
will make it compile.

I reproduced the case here :
https://godbolt.org/z/tINemW

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

Reply via email to