http://d.puremagic.com/issues/show_bug.cgi?id=1986
------- Comment #2 from [EMAIL PROTECTED] 2008-10-25 05:21 ------- This is working in DMD v2.020. The line number is in error message, but the message is still confusing because GenStruct *is* declared as a string, it should be declared as an 'invariant char [] GenStruct = ...'. main.d ------ template GenStruct(string Name, string M1) { string GenStruct = "struct " ~ Name ~ "{ int " ~ M1 ~ "; }"; } mixin(GenStruct!("Foo", "bar")); main.d(5): Error: argument to mixin must be a string, not (GenStruct) --