Priority
Critical
Type
Bug 
State
Fixed 
Assignee
Olga Lobacheva 
Subsystem
No subsystem 
Affected versions
Fixed in
Fixed in build
5.0.1612.107  
Build
458.1
Fixed in build
918
  • Submitted by   Henning Krause
    22 months ago (25 Mar 2008 00:28)
  • Updated by Henning Krause
    18 months ago (04 Aug 2008 19:47)
  • Jira: RSRP-62404
    (history, comments)

RSRP-62404

Solution Analysis incorrectly marks line with "Overflow in constant value computation"

0
Consider this code fragment:

using System.Security.AccessControl;

namespace ClassLibrary3
{
public class Class1
{
public static void Test()
{
var flags = AceFlags.SuccessfulAccess;

flags &= ~AceFlags.InheritOnly;
}
}
}

The flags &= ~AceFlags.InheritOnly will be marked with an error "Overflow in constant value computation" - yet it compiles fine and works as expected: The AceFlags.InheritOnly flag is cut away.

This line should not be marked as erroneous.

Issue was closed
Comments (0)
 
History (0)
 
Links
 
Issue has no comments