Spurious compiler warning ?

Nick Sabalausky a at a.a
Thu Nov 3 04:31:28 PDT 2011


"kenji hara" <k.hara.pg at gmail.com> wrote in message 
news:mailman.649.1320309243.24802.digitalmars-d at puremagic.com...
> 2011/11/3 Don <nospam at nospam.com>:
>> Maybe we should suppress unreachable code warnings inside unrolled code.
>
> I don't agree with this opinion of you.
> It is useful when we write generic code.
>

I don't know much about the internals of DMD, but would this make any 
sense?:

When unrolling code, keep track of where the unrolled parts came from. Only 
issue an unreachable code warning if *all* the unrolled versions of the 
original line X are unreachable.




More information about the Digitalmars-d mailing list