[llvm-bugs] [Bug 39769] New: Generic lambda in variable template in class template does not compile
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Nov 24 10:40:58 PST 2018
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: unassignedclangbugs at nondot.org
Reporter: sidney.congard 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
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181124/7ee8e7d1/attachment.html>
More information about the llvm-bugs
mailing list