[Codename Milan] Regression - Warning 4554 erroneously emitted - by Erik Olofsson

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


1
0
Sign in
to vote
ID 771534 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 11/18/2012 9:31:35 AM
Access Restriction Public

Description

#pragma warning(default:4554)

template <typename t_CInteger>
struct TCGetHighestBitSetStaticHelper
{

 template <t_CInteger t_CurrentNumber, bool t_bIsZero = t_CurrentNumber == t_CInteger(0)>
 struct TCInternal
 {
  enum
  {
   mc_Value = 1 + TCInternal< t_CInteger(t_CurrentNumber >> 1), t_CInteger(t_CurrentNumber >> 1) == 0 >::mc_Value
  };
 };

 template <t_CInteger t_CurrentNumber2>
 struct TCInternal<t_CurrentNumber2, true>
 {
  enum
  {
   mc_Value = 0
  };
 };
};

template <typename t_CInteger, t_CInteger t_CurrentNumber>
struct TCHighestBitSet 
{ 
 enum
 {
  mc_Value = TCGetHighestBitSetStaticHelper<t_CInteger>::template TCInternal<t_CurrentNumber>::mc_Value
 };
};

template <int t_MantissaBits>
class TCStrFormatType_Float
{
public:
 enum
 {
  EMantissaBits = t_MantissaBits + 8,
  EMinExponentBits = TCHighestBitSet<int, EMantissaBits + (EMantissaBits - 1)>::mc_Value + 2
 };
};

int _tmain(int argc, _TCHAR* argv[])
{
 TCStrFormatType_Float<52> Float;

 return 0;
}
Sign in to post a comment.
Posted by Microsoft on 4/29/2014 at 12:22 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 12/21/2012 at 6:35 PM
Hi Erik:
    Thanks for reporting the issue.
    A fix for this issue has been checked into the compiler sources. The fix should show up in the next release of Visual C++.

Visual C++ Team
Posted by Microsoft on 11/21/2012 at 10:31 PM
Thank you for submitting feedback on Visual Studio and .NET Framework. Your issue has been routed to the appropriate VS development team for investigation. We will contact you if we require any additional information.
Posted by Erik Olofsson on 11/19/2012 at 12:23 AM
This is with Visual C++ Compiler Nov 2012 CTP (Codename Milan)
Posted by Microsoft on 11/18/2012 at 11:47 PM
Thank you for submitting feedback on Visual Studio and .NET Framework. In order to efficiently investigate and reproduce this issue, we are requesting a demo project. Please submit this information to us within 4 business days. We look forward to hearing from you with this information.
************************************************************
Please zip the file and use "FeedbackID-XXXXXX" as prefix of the file name.
************************************************************
You can use the following workspace to upload the file by IE: https://sftus.one.microsoft.com/choosetransfer.aspx?key=9415c965-6590-4d5f-8331-614ff9c106df
Password: Z1_)G37MTk
Thanks again for your efforts and we look forward to hearing from you.
Microsoft Visual Studio Connect Support Team
Posted by Microsoft on 11/18/2012 at 9: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)