[LLVMbugs] [Bug 21103] clang does not correctly compile constexpr function for literal types that have a non-constexpr copy constructor
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Sep 30 16:42:08 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=21103
Richard Smith <richard-llvm at metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |richard-llvm at metafoo.co.uk
Resolution|--- |INVALID
--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
This looks like a GCC bug. The copy constructor for 'B<-1>' is not constexpr,
but you're invoking it to initialize the parameter of 'f', so the expression is
non-constant.
EDG rejects this for the same reason Clang does. I suspect GCC is failing to
check whether the copy constructor is constexpr when it's trivial?
Please reopen if you still believe this is a Clang (and EDG) bug, rather than a
GCC accepts-invalid.
--
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/20140930/49697224/attachment.html>
More information about the llvm-bugs
mailing list