[Issue 8632] DMD accepts illegal template metaprogram
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Nov 24 08:08:40 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=8632
yebblies <yebblies at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |yebblies at gmail.com
--- Comment #1 from yebblies <yebblies at gmail.com> 2013-11-25 03:08:39 EST ---
Errors, errors everywhere.
DMD v2.065 DEBUG
testx.d(6): Error: alias testx.BrokenY!(AlmostFact).BrokenFact!3.BrokenY
recursive alias declaration
testx.d(10): Error: template instance BrokenFact!(n - 1) BrokenFact is not a
template declaration, it is a variable
testx.d(4): Error: template instance testx.F!(2, 3) error instantiating
testx.d(10): instantiated from here: BrokenFact!2
testx.d(4): instantiated from here: F!(Z, 3)
testx.d(6): instantiated from here: Z!(Z)
testx.d(14): instantiated from here: BrokenFact!3
testx.d(10): Error: template instance
testx.BrokenY!(AlmostFact).BrokenFact!3.BrokenFact!2 error instantiating
testx.d(4): instantiated from here: F!(Z, 3)
testx.d(6): instantiated from here: Z!(Z)
testx.d(14): instantiated from here: BrokenFact!3
testx.d(4): Error: template instance testx.F!(Z, 3) error instantiating
testx.d(6): instantiated from here: Z!(Z)
testx.d(14): instantiated from here: BrokenFact!3
testx.d(6): Error: template instance
testx.BrokenY!(AlmostFact).BrokenFact!3.Z!(Z) error instantiating
testx.d(14): instantiated from here: BrokenFact!3
testx.d(14): Error: template instance testx.BrokenY!(AlmostFact).BrokenFact!3
error instantiating
testx.d(14): while evaluating pragma(msg, BrokenFact!3)
No idea what that code is supposed to do, but maybe it's fixed?
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list