[Issue 3867] pragma(msg) with a forward referenced enum member via an alias, templates, tuples, and CTFE

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Mar 2 14:02:11 PST 2010


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



--- Comment #6 from Fawzi Mohamed <fawzi at gmx.ch> 2010-03-02 14:02:07 PST ---
Maybe by bringing an example with pragma(msg) I confused the things.
My original problem was with a mixin(ctfe_function!(....)(...));
but the problem is really the instantiation, not the mixin, so my example was
just instantiating it to a const char[].
As I was doing it I did print it out (with pragma(msg)), and saw something
strange.
But the message might be a red herring, as the example showing only the
message, but not the error shows.
the real show blocker is the error:
{{{
t2-2.d(70): Error: template t2.axisFilter1(T,int rank,S...) does not match any
function template declaration
t2-2.d(70): Error: template t2.axisFilter1(T,int rank,S...) cannot deduce
template function from argument types !(int,1,NArray)(NArray,NArray,NArray)
t2-2.d(70): Error: cannot implicitly convert expression ((axisFilter1(T,int
rank,S...))(a,res,_param_1)) of type int to t2.NArray!(int,1).NArray
t2-2.d(75): Error: template instance t2.axisFilter!(int,1,NArray) error
instantiating
t2-2.d(79):        instantiated from here: doFilt!(int)
}}}

-- 
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