www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1854] New: bug in new flow analysis (warnings on valid code)

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1854

           Summary: bug in new flow analysis (warnings on valid code)
           Product: D
           Version: 2.011
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: critical
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: spam extrawurst.org


this code gives warning if compiled via -w though it should not:

[CODE]
class Foo {
  int foo() {
      synchronized(this){
          return 8;
      }
  }
}
[/CODE]

warning - main.d(3): function main.Foo.foo no return at end of function


-- 
Feb 20 2008
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1854


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #1 from bugzilla digitalmars.com  2008-03-07 00:32 -------
Fixed dmd 2.012


-- 
Mar 06 2008