well-hidden opBinary bug

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Wed Mar 18 08:10:56 PDT 2015


trying to build Deadcode with git HEAD reveals strange bug that i can't 
reproduce on smaller codebase:

(some irrelevant error in `gui.style.types.CSSScale.opBinary`)
Error: template instance gui.style.types.CSSScale.opBinary!"=" error 
instantiating

what is interesting about this bug that is was triggered by this line:

  SSScale height = style.height;

and then compiler tried to instantiate `opBinary!"="`, which is obviously 
wrong.

i'm not filling bug report 'cause i can't build sample code. any 
volunteers? it's a clear blocker for 2.067 release.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150318/7069fd39/attachment-0001.sig>


More information about the Digitalmars-d mailing list