[llvm-bugs] [Bug 44047] New: [C++20] lambda expression in unevaluated context
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Nov 18 08:55:35 PST 2019
https://bugs.llvm.org/show_bug.cgi?id=44047
Bug ID: 44047
Summary: [C++20] lambda expression in unevaluated context
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Keywords: compile-fail, missing-feature
Severity: normal
Priority: P
Component: C++2a
Assignee: unassignedclangbugs at nondot.org
Reporter: trass3r 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
https://godbolt.org/z/u4EaXs
#include <memory>
#include <stdio.h>
void test(const char* file)
{
auto f = std::unique_ptr<FILE, decltype([](FILE* f){ return fclose(f);
})>(fopen(file, "r"));
}
$ clang -Wall -W -std=c++2a -Os
error: lambda expression in an unevaluated operand
--
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/20191118/90752264/attachment.html>
More information about the llvm-bugs
mailing list