February 10, 2006
-----a.d
int main(){
auto Object o=new Object;
return 0;
}
-----
dmd -w a.d
warning - a.d(1): function a.main no return at end of function


February 16, 2006
kurimura wrote:
> -----a.d
> int main(){
> auto Object o=new Object;
> return 0;
> }
> -----
> dmd -w a.d
> warning - a.d(1): function a.main no return at end of function
> 
> 
Confirmed with dmd 0.147 on linux. The problem is in the handling of the auto statement. Compiles fine without warnings.

-- 
Jari-Matti
Top | Discussion index | About this forum | D home