[Issue 6661] Templates instantiated only through is(typeof()) shouldn't cause errors
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jan 24 14:27:50 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=6661
--- Comment #6 from github-bugzilla at puremagic.com 2013-01-24 14:27:48 PST ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/e9142862884625d0db801bbf1f05ad9487aae28b
fix test result for issue 6661
Inherently, when you try to instantiate a template, the whole template
body correctness should be checked at the same time.
In this case, bug6661!(int).qutz is a normal function declared inside
template, so it should be instantiated at the same time with bug6661!(int).
Now, the inner `static assert(qutz(13).sizeof!=299);` runs the semantic3
of qutz by calling it. So the module level static assertion fails _correctly_.
But, `is(typeof(bug6661x!(int)))` still returns true incorrectly.
I think it is yet another known issue in current dmd implementation.
--
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