https://bugs.llvm.org/show_bug.cgi?id=49411
Bug ID: 49411
Summary: local variables are allowed as default parameters in
template list
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++2a
Assignee: unassignedclangb...@nondot.org
Reporter: hewi...@gmail.com
CC: blitzrak...@gmail.com, erik.pilking...@gmail.com,
llvm-bugs@lists.llvm.org, richard-l...@metafoo.co.uk
The following code accept by Clang:
auto f() {
const auto x = 1;
[] <auto y = x> {};
}
But local variables are not allowed as default parameters.
godbolt: https://godbolt.org/z/TzxT9z
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs