www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1994] New: Assertion failure: 't->deco' on line 597 in file 'mtype.c'

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

           Summary: Assertion failure: 't->deco' on line 597 in file
                    'mtype.c'
           Product: D
           Version: 2.012
          Platform: PC
               URL: http://www.dsource.org/projects/bindings/wiki/WindowsApi
        OS/Version: Windows
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: terranium yandex.ru


when compiling win32 sources from
http://www.dsource.org/projects/bindings/wiki/WindowsApi
I get this assert.
For example
\dev\dmd\bin\dmd.exe commctrl.d -c -I.. -version=Unicode -version=WindowsVista
Assertion failure: 't->deco' on line 597 in file 'mtype.c'


-- 
Apr 14 2008
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1994





------- Comment #1 from bugzilla digitalmars.com  2008-04-22 20:52 -------
Can you please cut it down to a small test case? Thanks!


-- 
Apr 22 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1994





------- Comment #2 from terranium yandex.ru  2008-04-23 02:10 -------
I know that there should be a small test case.
I hoped that debug version of dmd will clear the situation quickly.
Didn't it help?
If you really need a test case, I'll make it... one day...


-- 
Apr 23 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1994





------- Comment #3 from terranium yandex.ru  2008-04-25 12:58 -------
Created an attachment (id=252)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=252&action=view)
testcase

Is it small enough?


-- 
Apr 25 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1994





------- Comment #4 from terranium yandex.ru  2008-04-25 13:10 -------
Whoa, I've found it.

extern(Windows):
void  fun(PRPC_RUNDOWN);
alias void function() PRPC_RUNDOWN;


-- 
Apr 25 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1994


braddr puremagic.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |2korden gmail.com




------- Comment #5 from braddr puremagic.com  2008-04-27 19:18 -------
*** Bug 2047 has been marked as a duplicate of this bug. ***


-- 
Apr 27 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1994


htvennik zonnet.nl changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |htvennik zonnet.nl




------- Comment #6 from htvennik zonnet.nl  2009-01-12 03:54 -------
I ran into this bug too. When investigating it I found that it happens if an
alias for a function pointer type is forward referenced, except when the type
is "void function()". Surprisingly, changing the type into a delegate type will
make it compile.

The minimal test-case seems to be:

Fn f;
alias int function() Fn;


Btw: For DMD 2.023 the assert is at mtype.c:1103.


-- 
Jan 12 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1994


clugdbug yahoo.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |samukha voliacable.com




------- Comment #7 from clugdbug yahoo.com.au  2009-04-01 06:08 -------
*** Bug 2433 has been marked as a duplicate of this bug. ***


-- 
Apr 01 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1994





------- Comment #8 from maxmo pochta.ru  2009-04-06 06:12 -------
Possibly related to bug 339


-- 
Apr 06 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1994





------- Comment #9 from clugdbug yahoo.com.au  2009-04-21 09:00 -------
*** Bug 2403 has been marked as a duplicate of this bug. ***


-- 
Apr 21 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1994


clugdbug yahoo.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ace17 free.fr




------- Comment #10 from clugdbug yahoo.com.au  2009-05-04 08:05 -------
*** Bug 2589 has been marked as a duplicate of this bug. ***


-- 
May 04 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1994


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
                 CC|                            |clugdbug yahoo.com.au




--- Comment #11 from Don <clugdbug yahoo.com.au>  2009-05-25 00:53:19 PDT ---
This is fixed by my patch to bug 2672.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 25 2009
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1994


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #12 from Don <clugdbug yahoo.com.au>  2009-07-09 05:05:52 PDT ---
Fixed DMD1.046 and 2.031.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 09 2009