https://llvm.org/bugs/show_bug.cgi?id=24725
Bug ID: 24725
Summary: max(initializer_list<T>) not constexpr
Product: libc++
Version: 3.6
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Created attachment 14846
--> https://llvm.org/bugs/attachment.cgi?id=14846&action=edit
source file
According to n4527, section 25.4.7, downloadable from here:
http://open-std.org/JTC1/SC22/WG21/docs/papers/2015/n4527.pdf
one signature of max is:
template<class T>
constexpr T max(initializer_list<T> t);
However, when the attached is compiled with version 3.6 of clang,
with options:
-stdlib=libc++ -std=c++14
I get the errors shown in 2nd attachment.
BTW, with clang3.5, it compiled OK.
--
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