<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:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" 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=us-ascii"><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;}
@font-face
        {font-family:"Book Antiqua";
        panose-1:2 4 6 2 5 3 5 3 3 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Book Antiqua",serif;
        font-variant:normal !important;
        color:black;
        text-transform:none;
        text-shadow:none;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;
        vertical-align:baseline;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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-IE link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Book Antiqua",serif;color:black'>I am investigating various failures when running the LibC++ test-suite (v4.0 branch, svn rev #294535), and a couple of them have me really stumped.  The following two tests were failing:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Book Antiqua",serif;color:black'><o:p> </o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:12.0pt;font-family:"Courier New";color:black'>language.support/support.dynamic/new.delete/new.delete.array/sized_delete_array14.pass.cpp<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:12.0pt;font-family:"Courier New";color:black'>language.support/support.dynamic/new.delete/new.delete.single/sized_delete14.pass.cpp<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Book Antiqua",serif;color:black'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Book Antiqua",serif;color:black'>and I realised that I needed to add ‘</span><span style='font-size:12.0pt;font-family:"Courier New";color:black'>-fsized-deallocation</span><span style='font-size:12.0pt;font-family:"Book Antiqua",serif;color:black'>’.  This fixed the ‘</span><span style='font-size:12.0pt;font-family:"Courier New";color:black'>array</span><span style='font-size:12.0pt;font-family:"Book Antiqua",serif;color:black'>’ version, but curiously the ‘</span><span style='font-size:12.0pt;font-family:"Courier New";color:black'>single</span><span style='font-size:12.0pt;font-family:"Book Antiqua",serif;color:black'>’ version still fails, and none of the three versions of ‘</span><span style='font-size:12.0pt;font-family:"Courier New";color:black'>operator delete</span><span style='font-size:12.0pt;font-family:"Book Antiqua",serif;color:black'>’ are being called.  We have not made any changes to the C++ front-end, so I don’t understand how our target might cause this.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Book Antiqua",serif;color:black'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Book Antiqua",serif;color:black'>The other group of failures is a lot more strange, and I haven’t been able to track down that could be wrong.  Most of the tests in the following directories fail:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Book Antiqua",serif;color:black'><o:p> </o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:12.0pt;font-family:"Courier New";color:black'>containers/associative/map/map.access<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:12.0pt;font-family:"Courier New";color:black'>containers/associative/map/map.cons<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:12.0pt;font-family:"Courier New";color:black'>containers/associative/map/map.modifiers<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:12.0pt;font-family:"Courier New";color:black'>containers/associative/map/map.ops</span><span style='font-size:12.0pt;font-family:"Book Antiqua",serif;color:black'><o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Book Antiqua",serif;color:black'>and:<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:12.0pt;font-family:"Courier New";color:black'>containers/associative/set</span><span style='font-size:12.0pt;font-family:"Courier New";color:black'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Book Antiqua",serif;color:black'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Book Antiqua",serif;color:black'>and all in the same way.  In each case the ‘</span><span style='font-size:12.0pt;font-family:"Courier New";color:black'>map</span><span style='font-size:12.0pt;font-family:"Book Antiqua",serif;color:black'>’ or ‘</span><span style='font-size:12.0pt;font-family:"Courier New";color:black'>set</span><span style='font-size:12.0pt;font-family:"Book Antiqua",serif;color:black'>’ is reporting ‘</span><span style='font-size:12.0pt;font-family:"Courier New";color:black'>m.size()</span><span style='font-size:12.0pt;font-family:"Book Antiqua",serif;color:black'>’ as ‘</span><span style='font-size:12.0pt;font-family:"Courier New";color:black'>2</span><span style='font-size:12.0pt;font-family:"Book Antiqua",serif;color:black'>’ instead of the expected value, and the ‘</span><span style='font-size:12.0pt;font-family:"Courier New";color:black'>assert</span><span style='font-size:12.0pt;font-family:"Book Antiqua",serif;color:black'>’ for this causes the test to fail.  The logic of what is happening disappears deeply into the template iterator expansions for the construction of the ‘</span><span style='font-size:12.0pt;font-family:"Courier New";color:black'>map</span><span style='font-size:12.0pt;font-family:"Book Antiqua",serif;color:black'>’ or ‘</span><span style='font-size:12.0pt;font-family:"Courier New";color:black'>set</span><span style='font-size:12.0pt;font-family:"Book Antiqua",serif;color:black'>’ from the array of ‘</span><span style='font-size:12.0pt;font-family:"Courier New";color:black'>pair</span><span style='font-size:12.0pt;font-family:"Book Antiqua",serif;color:black'>’s provided to the constructor, and I am wondering is anybody has any tips on how I can approach identifying why these are breaking in this way?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Book Antiqua",serif;color:black'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Book Antiqua",serif;color:black'>The only thing that I can think of in our target that might be anyway unusual, is that we have selected ‘</span><span style='font-size:12.0pt;font-family:"Courier New";color:black'>IEEESingle</span><span style='font-size:12.0pt;font-family:"Book Antiqua",serif;color:black'>’ for both ‘</span><span style='font-size:12.0pt;font-family:"Courier New";color:black'>float</span><span style='font-size:12.0pt;font-family:"Book Antiqua",serif;color:black'>’ and ‘</span><span style='font-size:12.0pt;font-family:"Courier New";color:black'>double</span><span style='font-size:12.0pt;font-family:"Book Antiqua",serif;color:black'>’, and all of these examples involve ‘</span><span style='font-size:12.0pt;font-family:"Courier New";color:black'>pair<int, double></span><span style='font-size:12.0pt;font-family:"Book Antiqua",serif;color:black'>’, but even so I can’t think how this would impact these tests.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Book Antiqua",serif;color:black'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Book Antiqua",serif;color:black'>Thanks,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Book Antiqua",serif;color:black'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Book Antiqua",serif;color:black'>            MartinO<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Book Antiqua",serif;color:black'><o:p> </o:p></span></p></div></body></html>