[Issue 10548] New: [REG 2.064a] argument has no identifier
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jul 5 03:58:07 PDT 2013
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: nobody at puremagic.com
ReportedBy: yazan.dabain at gmail.com
--- Comment #0 from yazan.dabain at gmail.com 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: -------
More information about the Digitalmars-d-bugs
mailing list