Templated default parameter value bug - by Joseph Thomson

Status : 

  Deferred<br /><br />
		The product team has reviewed this issue and has deferred it for consideration at a later time.<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 785667 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 4/26/2013 4:34:21 AM
Access Restriction Public


This is a compiler bug which causes the compiler to crash.  I believe the code in question is valid C++ code.

As far as I can tell, the crash happens when making a call to a templated function, which has a forward declaration, without providing an argument for a parameter whose default value is a static data member of a templated class whose template argument is indirectly specified (i.e. by forwarding the function's template parameter).
Sign in to post a comment.
Posted by Microsoft on 4/30/2013 at 4:50 AM
Hi Joseph,

Thank you for taking the time to provide your feedback. After reviewing your reported issue, in the context of all the issues reported to us, we have decided not to take any action on this feedback at this time. We will re-consider our decision for a future release. In the meantime, you can work around this issue by moving the default argument from the declaration of the function to the definition of the function.

If this issue is severe, causing critical business situations or blocking your product development or deployment, please go to http://support.microsoft.com or call 1-800-MICROSOFT for assistance.
For Microsoft premier customers, please contact your administrator, your Technical Account Manager, or your Microsoft premier account representative.

Karl Niu
VC++ Team
Posted by Microsoft on 4/28/2013 at 10:56 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 4/26/2013 at 4: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(http://support.microsoft.com)