Bug 1854 – bug in new flow analysis (warnings on valid code)
Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2008-02-20T05:45:00Z
Last change time
2015-06-09T01:14:35Z
Keywords
rejects-valid
Assigned to
bugzilla
Creator
spam
Comments
Comment #0 by spam — 2008-02-20T05:45:01Z
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