[Bug 77] New: After a compile error occurs, all template instances fail

Kyle Furlong kylefurlong at gmail.com
Fri Mar 31 19:21:38 PST 2006


Walter Bright wrote:
> d-bugmail at puremagic.com wrote:
>> And with a real project, thousands of lines of incorrect error 
>> messages can be
>> generated by a single typo! In fact, I now encounter this bug every 
>> time I get
>> any error message at all. I'd rank it as the most annoying bug in DMD. I
>> consider this severity=major -- I've had to temporarily abandon some 
>> of my
>> metaprogramming work because of it.
> 
> I actually put this in at your suggestion - you suggested that once 
> templates had an error, it was pointless to continue trying to expand 
> them because of a blizzard of cascading errors. I can change it so it 
> just quits on first template error?

This would be very good. Also, on a static assert fail, template expansion should also end.



More information about the Digitalmars-d-bugs mailing list