[Issue 6056] Type lookup problem in string mixins

2011-12-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6056


Walter Bright bugzi...@digitalmars.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||bugzi...@digitalmars.com
 Resolution||FIXED


--- Comment #4 from Walter Bright bugzi...@digitalmars.com 2011-12-11 
14:02:27 PST ---
https://github.com/D-Programming-Language/dmd/commit/bb3729ec6ccc4133368638069e5c09bfc035a77b

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


[Issue 6056] Type lookup problem in string mixins

2011-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6056


Kenji Hara k.hara...@gmail.com changed:

   What|Removed |Added

   Keywords||patch, rejects-valid


--- Comment #3 from Kenji Hara k.hara...@gmail.com 2011-10-04 11:39:25 PDT ---
string-mixin is also not needed.

alias const(typeof('c')*) A;
alias const(typeof(0)*) B;
static assert(is(B == const(int*)));

And template instance has same issue.

template X(T) { alias T X; }
alias const(X!char*) A;
alias const(X!int*) B;
static assert(is(B == const(int*)));

Patch:
https://github.com/D-Programming-Language/dmd/pull/430

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


[Issue 6056] Type lookup problem in string mixins

2011-05-25 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6056


kenn...@gmail.com changed:

   What|Removed |Added

 CC||kenn...@gmail.com
   Platform|Other   |x86
 OS/Version|Mac OS X|All


--- Comment #1 from kenn...@gmail.com 2011-05-25 11:38:45 PDT ---
Reduced test case:

--
template Bug6056() {
mixin(alias const typeof('c') A; alias const typeof(0) B;);
static assert(is(B == int));
}

alias Bug6056!() Bug6056_dummy;
--
x.d(4): Error: static assert  (is(char == int)) is false
x.d(7):instantiated from here: Bug6056!()
--

Alternative test case:

--
template Bug6056b() {
mixin(alias const(typeof('c')*) A; alias const(typeof(0)*) B;);
static assert(is(B == const(int*)));
}

alias Bug6056b!() Bug6056b_dummy;
--

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


[Issue 6056] Type lookup problem in string mixins

2011-05-25 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6056



--- Comment #2 from kenn...@gmail.com 2011-05-25 11:39:51 PDT ---
Actually that 'template' is not needed.


mixin(alias const(typeof('c')*) A; alias const(typeof(0)*) B;);
static assert(is(B == const(int*)));


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