[Issue 3881] Structs as template arguments

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Mar 5 08:36:30 PST 2010


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



--- Comment #1 from bearophile_hugs at eml.cc 2010-03-05 08:36:29 PST ---
Created an attachment (id=582)
A possible example

This attach shows a small program (that computes the N Queens at compile time)
that I think may show the consequence of not being able to pass a struct to a
template. I am not sure that's the cause.

At the top of the program there is a constant named 'Bug', that is currently
false. If you set it to true the program prints the wrong value 0 instead of
92.

If the cause of the problem is not the alias of the Mark template, then I think
it can be a compiler bug (or maybe just a bug of the code that I don't
understand).

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