Summary: DMD crash on infinite-recursive variadic template pure
                    auto function
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Keywords: ice-on-invalid-code
          Severity: regression
          Priority: P2
         Component: DMD

--- Comment #0 from 2011-04-14 01:18:50 PDT ---
The following program caused a 'Bus Error' in DMD when compiling:

pure auto j(T...)(int) {

void main() {

The 'Bus Error' doesn't happen when either 'pure' is removed, or 'auto' is
changed to 'void'. 

The 'Bus Error' does not happen at least on 2.048. It simply writes

x.d(2): Error: forward reference to inferred return type of function call j(0)
x.d(6): Error: template instance x.j!(int) error instantiating

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to