Jump to page: 1 2
Thread overview
[Issue 1994] New: Assertion failure: 't->deco' on line 597 in file 'mtype.c'
Apr 14, 2008
d-bugmail
Apr 23, 2008
d-bugmail
Apr 23, 2008
d-bugmail
Apr 25, 2008
d-bugmail
Apr 25, 2008
d-bugmail
Apr 28, 2008
d-bugmail
Jan 12, 2009
d-bugmail
Apr 01, 2009
d-bugmail
Apr 06, 2009
d-bugmail
Apr 21, 2009
d-bugmail
May 04, 2009
d-bugmail
[Issue 1994] Assertion failure: 't->deco' on line 597 in file 'mtype.c' - alias of function pointer type
May 25, 2009
Don
Jul 09, 2009
Don
April 14, 2008
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'


-- 

April 23, 2008
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!


-- 

April 23, 2008
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...


-- 

April 25, 2008
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?


-- 

April 25, 2008
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;


-- 

April 28, 2008
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. ***


-- 

January 12, 2009
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.


-- 

April 01, 2009
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. ***


-- 

April 06, 2009
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


-- 

April 21, 2009
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. ***


-- 

« First   ‹ Prev
1 2