This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 205270

Summary: R-value references breaks code model parser
Product: cnd Reporter: Vladimir Voskresensky <vv159170>
Component: Code ModelAssignee: Vladimir Voskresensky <vv159170>
Status: VERIFIED FIXED    
Severity: normal CC: mmirilovic
Priority: P1    
Version: 7.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Vladimir Voskresensky 2011-11-18 08:59:13 UTC
namespace std {
template<class _Elem,
	class _Traits>
	class basic_ostream
		: virtual public basic_ios<_Elem, _Traits>
	{	// control insertions into a stream buffer
public:


	 basic_ostream(_Myt&& _Right)
		{	// construct by moving _Right
		}

	_Myt&  operator=(_Myt&& _Right)
		{	// move from _Right
		return (*this);
		}

	void  swap(_Myt& _Right)
		{	// swap with _Right
		}
	};

template<class _Elem,
	class _Traits,
	class _Ty> inline
	basic_ostream<_Elem, _Traits>&
		operator<<(basic_ostream<_Elem, _Traits>&& _Ostr, _Ty _Val)
	{	// insert to rvalue stream
	return (_Ostr << _Val);
	}
 }
Comment 1 Vladimir Voskresensky 2011-11-18 09:30:38 UTC
Parser fail breaks code model significantly. We should support such constructions in 7.1
Comment 2 Vladimir Voskresensky 2011-11-18 09:50:51 UTC
fixed 
http://hg.netbeans.org/cnd-main/rev/2ca22125ee8d
Comment 3 nnnnnk 2011-11-18 10:52:19 UTC
reviewed. looks safe and correct.
Comment 4 Quality Engineering 2011-11-19 16:16:58 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/2ca22125ee8d
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixed #205270 - R-value references breaks code model parser
Comment 5 Vladimir Voskresensky 2011-11-22 12:07:28 UTC
integrated into 71
http://hg.netbeans.org/releases/rev/6581023fc400
Comment 6 Quality Engineering 2011-11-23 07:11:18 UTC
Integrated into 'releases'
Changeset: http://hg.netbeans.org/releases/rev/6581023fc400
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixed #205270 - R-value references breaks code model parser
Comment 7 soldatov 2011-12-01 13:35:04 UTC
Verified in NetBeans IDE 7.1 RC2 (Build 201111302200)