Home Dashboard Directory Help

Partial template specialization error with namespace & final by 顾益


 as Fixed Help for as Fixed

Sign in
to vote
Type: Bug
ID: 762838
Opened: 9/15/2012 2:12:21 AM
Access Restriction: Public
User(s) can reproduce this bug


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 Microsoft 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: http://go.microsoft.com/?linkid=9832436
Posted by Microsoft 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 Microsoft 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 Microsoft 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(http://support.microsoft.com)
Sign in to post a workaround.
File Name Submitted By Submitted On File Size  
vc bug.rar 9/15/2012 253 bytes
main.cpp 9/15/2012 40 bytes