Home Dashboard Directory Help
Search

Templated default parameter value bug by Joseph Thomson


Status: 

Closed
 as Deferred Help for as Deferred


1
0
Sign in
to vote
Type: Bug
ID: 785667
Opened: 4/26/2013 4:34:21 AM
Access Restriction: Public
1
Workaround(s)
view
0
User(s) can reproduce this bug

Description

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).
Details
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.

Thanks,
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)
Sign in to post a workaround.
Posted by Microsoft on 4/30/2013 at 4:50 AM
Move the default argument from the declaration of the function to the definition of the function.