[Bug 207] _d_throw is not treated as `noreturn`.

via D.gnu d.gnu at puremagic.com
Sat Jan 9 06:05:42 PST 2016


http://bugzilla.gdcproject.org/show_bug.cgi?id=207

--- Comment #7 from Iain Buclaw <ibuclaw at gdcproject.org> ---
OK, looks like it wasn't being set because of a (silently changed?) behaviour I
never anticipated when assigning to bitfields in C/C++.

unsigned volatile_flag : 1;

volatile_flag = (flags & 2);  // Assigning bits are '10', however the
                              // '1' is dropped because it doesn't fit.

I'm sure that this used to work in an earlier version, however I'm even more
surprised that this didn't trigger an overflow warning (it should have)!

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/d.gnu/attachments/20160109/dcad2979/attachment.html>


More information about the D.gnu mailing list