From 128d4d4313cea71e91e235d4666bd71f63daa5ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrzej=20Krzemie=C5=84ski?= Date: Thu, 8 Jan 2015 11:08:50 +0100 Subject: [PATCH] Update explicit-failures-markup.xml --- status/explicit-failures-markup.xml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/status/explicit-failures-markup.xml b/status/explicit-failures-markup.xml index 07f9e42213..822b2fde06 100644 --- a/status/explicit-failures-markup.xml +++ b/status/explicit-failures-markup.xml @@ -3001,6 +3001,32 @@ for more information. + + + + +

This is a compiler bug: it sometimes creates an illegal temporary object. + The following code illustrates the bug:

+
+		#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;
+		}
+                
+
+