digitalmars.D.bugs - [Issue 1819] New: spurious warning about missing return statement after synchronized
- d-bugmail puremagic.com (21/21) Feb 07 2008 http://d.puremagic.com/issues/show_bug.cgi?id=1819
- d-bugmail puremagic.com (9/9) Mar 06 2008 http://d.puremagic.com/issues/show_bug.cgi?id=1819
http://d.puremagic.com/issues/show_bug.cgi?id=1819 Summary: spurious warning about missing return statement after synchronized Product: D Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: andrei metalanguage.com In std.thread, the following code can't compile with warnings: static Thread[] getAll() { synchronized (Thread.classinfo) return allThreads[0 .. allThreadsDim]; } The compiler complains that there is no return at the end of the function. This warning should be removed because all paths inside synchronized do return. --
Feb 07 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1819 bugzilla digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Fixed dmd 1.028 and 2.012 --
Mar 06 2008