mirror of
https://github.com/boostorg/boost.git
synced 2025-04-07 14:29:14 +00:00
Merge pull request #45 from akrzemi1/patch-4
expected optional ref failures
This commit is contained in:
commit
14d16982ef
1 changed files with 30 additions and 0 deletions
|
@ -3027,6 +3027,36 @@ for more information.
|
|||
</pre>
|
||||
</note>
|
||||
</mark-expected-failures>
|
||||
<mark-expected-failures>
|
||||
<test name="optional_test_ref_converting_ctor"/>
|
||||
<toolset name="gcc-4.4*"/>
|
||||
<toolset name="gcc-4.2.1"/>
|
||||
<toolset name="gcc-4.5*"/>
|
||||
<toolset name="gcc-5.0.0"/>
|
||||
<toolset name="qcc-4.4.2_x86"/>
|
||||
<toolset name="qcc-4.4.2_arm"/>
|
||||
<note author="Andrzej Krzemienski" id="optional-ref-convert-assign-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
|
||||
{
|
||||
TestingReferenceBinding(const int& ii)
|
||||
{
|
||||
assert(&ii == &global_i);
|
||||
}
|
||||
};
|
||||
|
||||
int main()
|
||||
{
|
||||
TestingReferenceBinding 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