mirror of
https://github.com/boostorg/boost.git
synced 2025-04-06 22:14:59 +00:00
Update explicit-failures-markup.xml
This commit is contained in:
parent
6e6f04457b
commit
128d4d4313
1 changed files with 26 additions and 0 deletions
|
@ -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 <cassert>
|
||||
const int global_i = 0;
|
||||
|
||||
struct TestingReferenceBinding
|
||||
{
|
||||
void operator=(const int& ii)
|
||||
{
|
||||
assert(&ii == &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*"/>
|
||||
|
|
Loading…
Add table
Reference in a new issue