decltype operator - by Kingbos

Status : 

  Won't Fix<br /><br />
		Due to several factors the product team decided to focus its efforts on other items.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


2
0
Sign in
to vote
ID 510640 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 11/15/2009 1:02:57 AM
Access Restriction Public

Description

for the following function type, the ISO standard says that its type shoud be int (&)(char), that is rule 3 applies, but for VC2010 beta 2, its rusult is int (*)(char), please check that if it is a Bug. Thanks.

//
// Note that rule 3 applies when a pointer to function is formed:
//
int foo(char);
decltype(*&foo); // int (&)(char)
Sign in to post a comment.
Posted by Microsoft on 11/17/2009 at 10:18 AM
Hi: this is a known issue with the Visual C++ 2010 implementation of decltype. We do know how to fix this issue but we considered that given the nature of this example (and other similar examples) that the fix was too complicated and invasive to consider for this release. We do though have plans to fix this issue in a future release of Visual C++.

Jonathan Caves
Visual C++ Compiler Team
Posted by Microsoft on 11/17/2009 at 10:05 AM
Hi: this is a known issue with the Visual C++ 2010 implementation of decltype - we do know how to fix this issue but it was considered to large and complex of a fix to implement for this release. We do though have plans to address this issue in a future release of Visual C++.

Jonathan Caves
Visual C++ Compiler Team
Posted by Microsoft on 11/16/2009 at 9:35 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.

Thank you