Search

Impossible value-initialization with decltype by Сыроежка

Closed
as Fixed Help for as Fixed

1
0
Sign in
to vote
Type: Bug
ID: 733475
Opened: 3/26/2012 3:38:25 PM
Access Restriction: Public
Moderator Decision: Sent to Engineering Team for consideration
0
Workaround(s)
0
User(s) can reproduce this bug
The compiler can not compile code T() where T is a type deduced by decltype.
Details (expand)

Visual Studio/Team Foundation Server/.NET Framework Tooling version

Visual Studio 2010 SP1

Steps to reproduce

#include    "stdafx.h"

int i;
int j = decltype( i )();

int _tmain(int argc, _TCHAR* argv[])
{
}

Product Language

Russian

Operating System

Windows 7

Operating System Language

Russian

Actual results

Compile time error

error C2059: синтаксическая ошибка: decltype

Expected results

The code shall be compiled without an error
File Attachments
0 attachments
Sign in to post a comment.
Posted by Microsoft on 3/30/2012 at 4:48 PM
Thank you for your defect report. We're happy to say that the issue has been fixed and the fix will be part of the next release.

Tanveer Gani
Visual C++ Team.
Posted by MS-Moderator09 [Feedback Moderator] on 3/26/2012 at 8:15 PM
Thank you for submitting feedback on Visual Studio 2010 and .NET Framework. Your issue has been routed to the appropriate VS development team for review. We will contact you if we require any additional information.
Posted by MS-Moderator01 on 3/26/2012 at 3:48 PM
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.