[llvm-bugs] [Bug 25573] New: compiler error when accessing a static constexpr value of struct
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Nov 18 20:28:58 PST 2015
https://llvm.org/bugs/show_bug.cgi?id=25573
Bug ID: 25573
Summary: compiler error when accessing a static constexpr value
of struct
Product: clang
Version: 3.7
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: unassignedclangbugs at nondot.org
Reporter: ytj000 at gmail.com
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
Classification: Unclassified
// The following code compiles in gcc (http://goo.gl/gFGc9K), but not clang
(http://goo.gl/woxdi1).
#include <type_traits>
template<class T> struct Foo { Foo(T = nullptr) {} };
using U = std::is_constructible<Foo<int>>;
bool b = U::value; // If we remove this line, it compiles in both gcc and
clang.
// However the value of `b` is true, which is
counterintuitive.
int main() {}
--
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/20151119/aa7e8694/attachment.html>
More information about the llvm-bugs
mailing list