[Issue 11471] New: [profile] `asm` statements rejected in `nothrow` functions if built with "-profile"
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Nov 7 12:13:54 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11471
Summary: [profile] `asm` statements rejected in `nothrow`
functions if built with "-profile"
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: verylonglogin.reg at gmail.com
--- Comment #0 from Denis Shelomovskij <verylonglogin.reg at gmail.com> 2013-11-07 23:13:53 MSK ---
Error iff built with "-profile":
---
void main() nothrow
{ asm { nop; } } // Error: asm statements are assumed to throw
---
Documentation doesn't say `asm` can't be used in `nothrow` functions and IMO
such restriction looks too strong. As a result some druntime (Issue 10260) and
Phobos (Issue 10849) parts can't be used while profiling.
Let it be a "rejects-valid" bug for now.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list