[Bug 38] Template crashes DMD

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 18 06:32:09 PDT 2006


http://d.puremagic.com/bugzilla/show_bug.cgi?id=38


smjg at iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg at iname.com
           Keywords|                            |ice-on-invalid-code, ice-on-
                   |                            |valid-code




------- Comment #1 from smjg at iname.com  2006-05-18 08:32 -------
Let me try to make sense of this:

- The code as it is crashes DMD.
- If you comment out one of the if statements, then it still crashes DMD.
- If you comment out both of the if statements, then it doesn't crash.
- If you replace the function signature of exists with the one that's commented
out, then, in the same way, DMD crashes as long as at least one of the if
statements is active.

But your code seems valid in most cases.

With exists(T, U), it's instantiated as exists!(char[][], char[]).  
With exists(T[][], U[]), it's instantiated as exists!(char, char).

The first if statement is valid for exists(T, U), but not for exists(T[][],
U[]).


-- 




More information about the Digitalmars-d-bugs mailing list