Home Dashboard Directory Help
Search

An internal compiler error reduced to a small code snippet by Kaba_


Status: 

Closed
 as Fixed Help for as Fixed


1
0
Sign in
to vote
Type: Bug
ID: 735254
Opened: 4/3/2012 8:40:40 AM
Access Restriction: Public
Moderator Decision: Sent to Engineering Team for consideration
1
Workaround(s)
view
0
User(s) can reproduce this bug

Description

Visual Studio crashes with an internal compiler error when given this small code snippet. This code was manually reduced from real library code by expanding includes and doing a binary search on reduced code snippets.
Details
Sign in to post a comment.
Posted by Microsoft on 4/29/2014 at 12:24 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 4/5/2012 at 11:30 AM
Hi Kaba:
    A fix for this issue has been checked into the compiler sources. The fix should show up in the next release of Visual C++.

Xiang Fan
Visual C++ Team
Posted by MS-Moderator07 [Feedback Moderator] on 4/3/2012 at 7:47 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 MS-Moderator01 on 4/3/2012 at 9:47 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 Kaba_ on 4/3/2012 at 9:55 AM
template<typename N>
class A;

template <int N>
class B {};

template <int N>
void f()
{
typedef B<N> B_AvoidBug;
auto h = [&]()
{
B_AvoidBug b;
};
}

int main()
{
f<2>();
return 0;
}