Update explicit-failures-markup.xml

This commit is contained in:
Andrzej Krzemieński 2015-01-08 11:08:50 +01:00
parent 6e6f04457b
commit 128d4d4313

View file

@ -3001,6 +3001,32 @@ for more information.
<!-- optional -->
<library name="optional">
<mark-expected-failures>
<test name="optional_test_ref_assign_const_int"/>
<toolset name="msvc-10.0"/>
<note author="Andrzej Krzemienski" id="optional-const-int-ref-bug">
<p>This is a compiler bug: it sometimes creates an illegal temporary object.
The following code illustrates the bug:</p>
<pre>
#include &lt;cassert&gt;
const int global_i = 0;
struct TestingReferenceBinding
{
void operator=(const int&amp; ii)
{
assert(&amp;ii == &amp;global_i);
}
};
int main()
{
TestingReferenceBinding ttt;
ttt = global_i;
}
</pre>
</note>
</mark-expected-failures>
<mark-expected-failures>
<test name="optional_test_ref"/>
<toolset name="msvc-6.5*"/>