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

           Summary: [REG 2.064a] argument has no identifier
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from [email protected] 2013-07-05 03:58:06 PDT ---
import std.stdio, std.traits;

int foo(int num, string name);

void main() {
  void bar(int num){}
  static if (is(FunctionTypeOf!bar PT == __parameters)) {
    pragma(msg, __traits(identifier, PT[0..1]));
  }
}


Compiling this code using dmd 2.063, you get "num" printed out.
In dmd 2.064a, the compiler prints:

------
main.d(8): Error: argument int has no identifier
false
------

This regression is caused by commit: 877e7bf
pull request: https://github.com/D-Programming-Language/dmd/pull/1102
fixing: http://d.puremagic.com/issues/show_bug.cgi?id=3646

This is blocking: https://github.com/D-Programming-Language/phobos/pull/1378

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

Reply via email to