www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11471] New: [profile] `asm` statements rejected in `nothrow` functions if built with "-profile"

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: verylonglogin.reg gmail.com


--- Comment #0 from Denis Shelomovskij <verylonglogin.reg 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: -------
Nov 07 2013
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11471


Denis Shelomovskij <verylonglogin.reg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code dawg.eu


--- Comment #1 from Denis Shelomovskij <verylonglogin.reg gmail.com> 2013-11-07
23:14:41 MSK ---
*** Issue 10260 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 07 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11471


Denis Shelomovskij <verylonglogin.reg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tcdknutson gmail.com


--- Comment #2 from Denis Shelomovskij <verylonglogin.reg gmail.com> 2013-11-07
23:15:26 MSK ---
*** Issue 10849 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 07 2013
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11471


Vladimir Panteleev <thecybershadow gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thecybershadow gmail.com
           Severity|normal                      |regression


--- Comment #3 from Vladimir Panteleev <thecybershadow gmail.com> 2014-03-28
02:48:54 EET ---
This is a regression.

Introduced in https://github.com/D-Programming-Language/dmd/pull/1806.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 27 2014