incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Created: (STDCXX-283) [MSVC 8.0] bogus warning 4307 on dead code
Date Fri, 01 Sep 2006 16:01:22 GMT
[MSVC 8.0] bogus warning 4307 on dead code
------------------------------------------

                 Key: STDCXX-283
                 URL: http://issues.apache.org/jira/browse/STDCXX-283
             Project: C++ Standard Library
          Issue Type: Bug
          Components: External
    Affects Versions: 4.1.2, 4.1.3
         Environment: MSVC 7.0 through 8.0
            Reporter: Martin Sebor


$ cat t.cpp && cl -W3 t.cpp
void foo (const int *s)
{
    const unsigned i = 0xffffffffU;

    if (0xffffffffU == i)
        s = 0;
    else
        s += i;
}

int main ()
{
    foo (0);
}
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for 80x86
Copyright (C) Microsoft Corporation.  All rights reserved.

t.cpp
t.cpp(8) : warning C4307: '*' : integral constant overflow
Microsoft (R) Incremental Linker Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:t.exe 
t.obj 


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message