www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - DMD stuck at semantic analyze

I just encountered a strange thing. I'm compiling my project, DStep, 
using DMD 2.059 and it get stuck at the semantic analyze (semantic3) of 
the following file:

https://github.com/jacob-carlborg/mambo/blob/43f7e8ffded8c50d6c1d864d472a8bcb511787e9/arguments/Arguments.d

It seems to have something to do with line 40. If I comment out that 
line DMD seems to behave correctly.

If I use latest git HEAD, DMD doesn't get stuck, it just exits at the 
same semantic analyze with exit code 0 and doesn't produce an executable.

I've done some tries to get a reduced test case but failed to reduce the 
code.

https://github.com/jacob-carlborg/dstep/tree/args

-- 
/Jacob Carlborg
Jul 18 2012