www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10734] New: Assertion failure: '0' on line 1546 in file 'cast.c'

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

           Summary: Assertion failure: '0' on line 1546 in file 'cast.c'
           Product: D
           Version: D2
          Platform: All
        OS/Version: Windows
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: zan77137 nifty.com


--- Comment #0 from SHOO <zan77137 nifty.com> 2013-07-31 09:53:05 PDT ---
This code doesn't work:
--------------
extern (Windows)
{
    export uint DefWindowProcA(void*, uint, uint, ptrdiff_t);
    alias uint function (void*, uint, uint, ptrdiff_t) WNDPROC;
}
void main()
{
    WNDPROC lpfnWndProc = &DefWindowProcA;
}
--------------
RESULT:

$ dmd -run main
Assertion failure: '0' on line 1546 in file 'cast.c'

abnormal program termination

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 31 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10734



--- Comment #1 from SHOO <zan77137 nifty.com> 2013-08-01 08:44:33 PDT ---
Following code is independent of Windows:
extern (C)
{
    export size_t strlen(in char*);
    alias size_t function(in char*) strlenfunc;
}
void main()
{
    strlenfunc fn = &strlen;
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 01 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10734


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice, pull
         OS/Version|Windows                     |All


--- Comment #2 from Kenji Hara <k.hara.pg gmail.com> 2013-08-01 16:49:36 PDT ---
(In reply to comment #1)
 Following code is independent of Windows:
 extern (C)
 {
     export size_t strlen(in char*);
     alias size_t function(in char*) strlenfunc;
 }
 void main()
 {
     strlenfunc fn = &strlen;
 }
Thanks. I opened a a pull request to fix the ice bug. https://github.com/D-Programming-Language/dmd/pull/2439 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 01 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10734



--- Comment #3 from github-bugzilla puremagic.com 2013-08-02 13:38:49 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/6fc69a639d9e2e13984835d75333114914ac3243
fix Issue 10734 - Assertion failure: '0' on line 1546 in file 'cast.c'

It's a 2.064a regression introduced by 'improveDefArgs' change
commit: a711eb6b499ca85b7cfa4e758d9e968fef8d315f

https://github.com/D-Programming-Language/dmd/commit/776c2d39f3c63f3f58a8077f4b4747c45992cc13
Merge pull request #2439 from 9rnsr/fix10734

[REG2.064a] Issue 10734 - Assertion failure: '0' on line 1546 in file 'cast.c'

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 02 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10734


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 02 2013