Partial template specialization error with namespace & final - by 顾益

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 762838 Comments
Status Resolved Workarounds
Type Bug Repros 0
Opened 9/15/2012 2:12:21 AM
Access Restriction Public


My description is quite clear, please look at the code in VC++:
#pragma once
namespace N
template <typename T>
class A final {};
template <typename T>//the partial specialization
class A<const T> final {};

#include "header.h"
void main() {}

to the code above, the compiler will crash! reporting C1001 error.
please check, thank you.
Sign in to post a comment.
Posted by Deon [MSFT] on 4/29/2014 at 12:32 PM
Thank you for reporting this issue. This issue has been fixed in Visual Studio 2013. You can install a trial version of Visual Studio 2013 with the fix from:
Posted by Rashid [MSFT] on 1/11/2013 at 12:32 PM
Thanks for reporting the issue. It surely was crashing . We have fixed the issue on our end and the fix will be available in future releases of Visual Studio. We appreciate your feedback.Thanks

Rashid Sarwar
Visual C++ team
Posted by 顾益 on 11/21/2012 at 5:37 PM
In the 2012 Nov. CTF, the bug still exist.
Posted by Macy [MSFT] on 9/16/2012 at 7:37 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Helen [MSFT] on 9/15/2012 at 2:52 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(