[LLVMbugs] [Bug 15375] constexpr expression ends up as undefined symbol
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Feb 27 16:06:09 PST 2013
http://llvm.org/bugs/show_bug.cgi?id=15375
Richard Smith <richard-llvm at metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |INVALID
--- Comment #3 from Richard Smith <richard-llvm at metafoo.co.uk> ---
(In reply to comment #2)
> Um, care to enlighten me how? I thought
>
> static constexpr unsigned max = 2;
>
> was the definition.
No, that's just a declaration. You need a definition outside the class:
const unsigned Bug::max;
> Why is std::min different from std::max in this case?
It's not. Both fail for me in the exact same way.
--
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/20130228/8efc45b6/attachment.html>
More information about the llvm-bugs
mailing list