[LLVMbugs] [Bug 16879] MSVC, ICC and G++ can compile template with non-type template parameters that clang can't

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Aug 13 17:01:54 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=16879

Eli Friedman <sharparrow1 at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |sharparrow1 at yahoo.com
         Resolution|---                         |INVALID

--- Comment #1 from Eli Friedman <sharparrow1 at yahoo.com> ---
We're rejecting this because (-9223372036854775807LL-1)%-1 is not a constant
expression.

>From DR1450: "For integral operands the / operator yields the algebraic
quotient with any fractional part discarded;81 if the quotient a/b is
representable in the type of the result, (a/b)*b + a%b is equal to a;
otherwise, the behavior of both a/b and a%b is undefined."

-- 
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/20130814/4cc0636c/attachment.html>


More information about the llvm-bugs mailing list