You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by "Martin Sebor (JIRA)" <ji...@apache.org> on 2006/09/01 20:33:33 UTC
[jira] Commented: (STDCXX-283) [MSVC 8.0] bogus warning 4307 on
dead code
[ http://issues.apache.org/jira/browse/STDCXX-283?page=comments#action_12432200 ]
Martin Sebor commented on STDCXX-283:
-------------------------------------
Filed here: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=191933
> [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