Summary: dmd 2.049 rejects code containing templates with a
                    uint as template parameter
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2010-09-30 10:15:22 PDT ---
Created an attachment (id=778)
the failing piece of code

Hi there the following code is rejected by dmd 2.049
With the help of some helpful people in the D IRC channel I inserted the
pragmas into the code to highlight that dmd seems to somehow mix these two
identical types up.

If compiled the output is:
../../dmd2/linux/bin/dmd -O ChargeChargeCorrelation_Paste.d
ChargeChargeCorrelation_Paste.d(23): Error: cannot implicitly convert
expression (timeevolver) of type
ChargeChargeCorrelation_Paste.main.Meanfield!(dimension).U to

The first two lines coming from the pragmas.
If the alias is put into the global namespace the example compiles.

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

Reply via email to