http://d.puremagic.com/issues/show_bug.cgi?id=4192

           Summary: Certain CTF can't be evaluated anymore
           Product: D
           Version: 1.057
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: aziz.koek...@gmail.com


--- Comment #0 from Aziz K�ksal <aziz.koek...@gmail.com> 2010-05-15 09:16:43 
PDT ---
This bug actually concerns version 1.061 (bugzilla's list is not up-to-date).

Managed to prepare a small test case:

class A {
  static uint actf(char[] s)
  {
    return s.length;
  }

  static assert(actf("abcd") == 4);
  pragma(msg, actf("abcd") == 4);
}

The static assert will trigger an error. If you comment out the pragma
statement, it will compile. The pragma is not really meaningful and doesn't
appear in my code, but I couldn't find another way to trigger the bug. If this
is fixed, I believe my code will work, too.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to