Correct code doesn't compile - by VinnieFalco

Status : 

  Deferred<br /><br />
		The product team has reviewed this issue and has deferred it for consideration at a later time.<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 771509 Comments
Status Closed Workarounds
Type Bug Repros 2
Opened 11/17/2012 1:05:41 PM
Access Restriction Public


// This code fails to compile in Visual Studio 2010 and Visual Studio 2012
struct S {
  template <class T> inline operator T () const { return T (); }
int main () {
  S () || false;
  return 0;
Sign in to post a comment.
Posted by ildjarn on 5/14/2015 at 3:13 AM
I can confirm that this problem is still present in compiler version 19.00.22816.
Posted by Microsoft on 11/19/2012 at 9:45 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Microsoft Visual Studio Connect Support Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Microsoft on 11/19/2012 at 9:50 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(