Home Dashboard Directory Help
Search

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


Status: 

Closed
 as Fixed Help for as Fixed


1
0
Sign in
to vote
Type: Bug
ID: 771534
Opened: 11/18/2012 9:31:35 AM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

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;
}
Details
Sign in to post a comment.
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)
Sign in to post a workaround.
File Name Submitted By Submitted On File Size  
UploadSummary-121118173135.xml (restricted) 11/18/2012 -
VsInfo.xml (restricted) 11/18/2012 -
SolutionFingerprint.2772.html (restricted) 11/18/2012 -
DxDiagOutput.txt (restricted) 11/18/2012 -
SolutionFingerprint.12908.html (restricted) 11/18/2012 -