[Issue 5517] SEGV: assert(false) in release mode
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jan 28 15:19:56 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=5517
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |bugzilla at digitalmars.com
Resolution| |INVALID
--- Comment #9 from Walter Bright <bugzilla at digitalmars.com> 2012-01-28 15:19:50 PST ---
Quoth the spec:
"The expression assert(0) is a special case; it signifies that it is
unreachable code. Either AssertError is thrown at runtime if it is reachable,
or the execution is halted (on the x86 processor, a HLT instruction can be used
to halt execution). The optimization and code generation phases of compilation
may assume that it is unreachable code."
It's working as designed.
dlang.org/expression.html#AssertExpression
--
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