[Issue 6205] Strongly-pure nothrow functions with ignored return value are entirely stripped even if it contains a failing 'assert'.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jun 24 02:35:48 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6205
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |clugdbug at yahoo.com.au
--- Comment #3 from Don <clugdbug at yahoo.com.au> 2011-06-24 02:30:58 PDT ---
The bug is that the compiler's behaviour isn't consistent.
It's reasonable to optimize the function away in this case -- but then, it
should generate an 'expression has no effect' warning. See bug 3882.
This test case is an excellent justification for treating 3882 as a bug, rather
than an enhancement.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list