<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">While I am supportive of reducing the generality of binary representation currently allowed by the standards, I would be hard pressed to reduce it to only 2’s complement.<o:p></o:p></p>
<p class="MsoNormal">C&#43;&#43; should support at least the binary representations afforded by C, e.g. 2’s complement, 1’s complement, and sign-magnitude.
<o:p></o:p></p>
<p class="MsoNormal">I wouldn’t support a “if nobody heard the tree fall, then it didn’t fall” approach.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> ub-bounces@open-std.org &lt;ub-bounces@open-std.org&gt;
<b>On Behalf Of </b>JF Bastien<br>
<b>Sent:</b> Sunday, February 18, 2018 9:52 PM<br>
<b>To:</b> WG21 UB study group SG12 &lt;ub@open-std.org&gt;<br>
<b>Subject:</b> Re: [ub] A proposal to define signed overflow submitted?<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<p class="MsoNormal">On Sun, Feb 18, 2018 at 9:48 PM Lawrence Crowl &lt;<a href="mailto:Lawrence@crowl.org">Lawrence@crowl.org</a>&gt; wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal">On 2/16/18, Freek Wiedijk &lt;<a href="mailto:freek@cs.ru.nl" target="_blank">freek@cs.ru.nl</a>&gt; wrote:<br>
&gt; Is there a good reason not to have it be implementation defined<br>
&gt; whether signed overflow is undefined or wrapping?<br>
<br>
If integer overflow is undefined behavior, then it is wrong. Tools can<br>
detect wrong programs and report them.<br>
<br>
If integer overflow is wrapping, then one never knows whether or<br>
not the programmer is relying on wrapper or would be surprised at<br>
wrapping.&nbsp; No diagnostic is possible.<o:p></o:p></p>
</blockquote>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">No disagreement. I wrote the paper the way I did because I want that discussion to conclude what the default should be, and what the more verbose alternate should be: UB or two’s complement?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">There are many ways we can design this. I proposed the one I find more palatable, expecting others to disagree.&nbsp;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">It would be great for a solid reasoning to emerge on the design.&nbsp;<o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>