Internal compiler error when using std::remove_reference in template metaprogram - by stheophil

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 809240 Comments
Status Closed Workarounds
Type Bug Repros 1
Opened 11/21/2013 5:27:21 AM
Access Restriction Public


The attached C++ code has to use std::remove_reference or boost::remove_reference close to the top. 

The code compiles when the remove_reference is left out (but then the code is not correct, of course)
Adding *::remove_reference crashes the compiler.

EVEN when I implement the remove_reference functionality by hand using partial template specialization. 
Sign in to post a comment.
Posted by Microsoft on 1/20/2014 at 9:25 AM
    Thanks for reporting the issue.
    A fix for this issue has been checked into the compiler sources. The fix should show up in the next major release of Visual C++.

Xiang Fan
Visual C++ Team
Posted by Microsoft on 11/21/2013 at 11:55 PM
Thank you for submitting feedback on Visual Studio and .NET Framework. Your issue has been routed to the appropriate VS development team for investigation. We will contact you if we require any additional information.
Posted by Microsoft on 11/21/2013 at 5:50 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(