static assert fouls up template promotion when between static if

Nick Nick_member at pathlink.com
Wed Feb 22 23:31:04 PST 2006


In article <dthlsr$1t9a$1 at digitaldaemon.com>, Don Clugston says...
>
>Note that a failed template promotion can easily send the compiler into 
>an error message orgy, which you unfortunately can't break out of with ^C.

If you're on linux, try compiling with eg. "make | head".

Sorta OT, but I think the error message orgy itself should be treated as a bug.
If the compiler fails to instantiate a template, it continues to compile the
entire program but fails with _every_ template. This leads to tons of unrelated
and bogus error messages like "template instance cannot resolve forward
reference".

Nick





More information about the Digitalmars-d-bugs mailing list