[Bug 180] New: DMD accepts a function with a non-void return type but no return statements

Derek Parnell derek at psych.ward
Wed Jun 7 07:12:58 PDT 2006


On Wed, 07 Jun 2006 22:19:47 +1000, <d-bugmail at puremagic.com> wrote:


> As such, the compiler should be reporting an error on such code as the  
> above.

This is one of the 'optional' errors. You can get the compiler to issue an  
error by using the -w switch.


-- 
Derek Parnell
Melbourne, Australia



More information about the Digitalmars-d-bugs mailing list