www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2508] New: -inline doesn't work with new runtime lib.

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2508

           Summary: -inline doesn't work with new runtime lib.
           Product: D
           Version: 2.020
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: godaves yahoo.com


v2.020 & v2.021.
//--
import std.stdio;

void main()
{
    writefln(foo(10));
}

int foo(int i)
{
    return i * i;
}
//--
C:\Zz\Downloads>dmd -O -release -inline t.d
C:\dmd\bin\..\src\druntime\import\core\exception.di(12): constructor
object.Error.this (invariant(char)[] msg) does not
match parameter types (invariant(char[15u]),invariant(char)[],uint)
C:\dmd\bin\..\src\druntime\import\core\exception.di(12): Error: expected 2
arguments, not 3
C:\dmd\bin\..\src\druntime\import\core\exception.di(12): Error: cannot
implicitly convert expression (file) of type inva
riant(char)[] to object.Error
C:\dmd\bin\..\src\druntime\import\core\exception.di(19): constructor
object.Error.this (invariant(char)[] msg) does not
match parameter types (invariant(char[17u]),invariant(char)[],uint)
C:\dmd\bin\..\src\druntime\import\core\exception.di(19): Error: expected 2
arguments, not 3
C:\dmd\bin\..\src\druntime\import\core\exception.di(19): Error: cannot
implicitly convert expression (file) of type inva
riant(char)[] to object.Error
C:\dmd\bin\..\src\druntime\import\core\exception.di(23): constructor
object.Error.this (invariant(char)[] msg) does not
match parameter types (invariant(char)[],invariant(char)[],uint)
C:\dmd\bin\..\src\druntime\import\core\exception.di(23): Error: expected 2
arguments, not 3
C:\dmd\bin\..\src\druntime\import\core\exception.di(23): Error: cannot
implicitly convert expression (file) of type inva
riant(char)[] to object.Error
C:\dmd\bin\..\src\druntime\import\core\exception.di(31): constructor
object.Error.this (invariant(char)[] msg) does not
match parameter types (invariant(char[18u]),Exception)
C:\dmd\bin\..\src\druntime\import\core\exception.di(31): Error: cannot
implicitly convert expression (e) of type object.
Exception to object.Error
C:\dmd\bin\..\src\druntime\import\core\exception.di(53): constructor
object.Error.this (invariant(char)[] msg) does not
match parameter types (invariant(char[24u]),invariant(char)[],uint)
C:\dmd\bin\..\src\druntime\import\core\exception.di(53): Error: expected 2
arguments, not 3
C:\dmd\bin\..\src\druntime\import\core\exception.di(53): Error: cannot
implicitly convert expression (file) of type inva
riant(char)[] to object.Error
C:\dmd\bin\..\src\druntime\import\core\exception.di(67): constructor
object.Error.this (invariant(char)[] msg) does not
match parameter types (invariant(char[34u]),invariant(char)[],uint)
C:\dmd\bin\..\src\druntime\import\core\exception.di(67): Error: expected 2
arguments, not 3
C:\dmd\bin\..\src\druntime\import\core\exception.di(67): Error: cannot
implicitly convert expression (file) of type inva
riant(char)[] to object.Error


-- 
Dec 12 2008
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2508


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |clugdbug yahoo.com.au
         Resolution|                            |FIXED


--- Comment #1 from Don <clugdbug yahoo.com.au> 2010-05-27 00:26:05 PDT ---
Fixed DMD2.022.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 27 2010