Thread overview
[Issue 2432] New: complex alias -> mtype.c:125: virtual Type* Type::syntaxCopy(): Assertion `0' failed.
Oct 27, 2008
d-bugmail
Oct 27, 2008
d-bugmail
Nov 24, 2008
d-bugmail
Jul 09, 2009
Walter Bright
October 27, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2432

           Summary: complex alias -> mtype.c:125: virtual Type*
                    Type::syntaxCopy(): Assertion `0' failed.
           Product: D
           Version: 1.036
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: shro8822@vandals.uidaho.edu


ldc seem to have fixed this:

http://dsource.org/projects/ldc/changeset/486%3Aa34078905d01/dmd/mtype.c

test case to be attached


-- 

October 27, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2432





------- Comment #1 from shro8822@vandals.uidaho.edu  2008-10-27 00:30 -------
Created an attachment (id=276)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=276&action=view)
test case


-- 

November 24, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2432


smjg@iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg@iname.com
           Keywords|                            |ice-on-valid-code
         OS/Version|Linux                       |All




------- Comment #2 from smjg@iname.com  2008-11-24 10:59 -------
Still fails if the C and D middlemen are cut out (1.039 Windows):

----------
template Tuple(T...) { alias T Tuple; }

enum J { N }

template A(){ const J M = J.N; }
template B(){ alias A!() G; }

alias Tuple!(Tuple!(B!())[0].G) L;
pragma(msg, L.stringof);
----------
bz2432.d(8): Error: expression A!() is not a valid template value argument
bz2432.d(8): template instance bz2432.Tuple!(A!()) error instantiating
J 00192E30
ty = 9
Assertion failure: '0' on line 125 in file 'mtype.c'
----------


-- 

July 09, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2432


Walter Bright <bugzilla@digitalmars.com> changed:

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




--- Comment #3 from Walter Bright <bugzilla@digitalmars.com>  2009-07-09 02:47:21 PDT ---
Fixed dmd 1.046 and 2.031

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