www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 483] New: ICE-invalid with tuple. mangleof.

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

           Summary: ICE-invalid with tuple. mangleof.
           Product: D
           Version: 0.173
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: minor
          Priority: P5
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: clugdbug yahoo.com.au


I think it should just print an error "A is not a type".
--------
Assertion failure: 'deco' on line 540 in file 'mtype.c'

abnormal program termination
--------
char[] f(A...)(A a)
{
    return A.mangleof;
}

void main()
{
    int b = f(3);
}


-- 
Nov 06 2006
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=483


clugdbug yahoo.com.au changed:

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





Fixed 0.174.


-- 
Nov 16 2006
prev sibling parent Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

d-bugmail puremagic.com schrieb am 2006-11-06:
 http://d.puremagic.com/issues/show_bug.cgi?id=483
 I think it should just print an error "A is not a type".
 --------
 Assertion failure: 'deco' on line 540 in file 'mtype.c'

 abnormal program termination
 --------
 char[] f(A...)(A a)
 {
     return A.mangleof;
 }

 void main()
 {
     int b = f(3);
 }
Added to DStress as http://dstress.kuehne.cn/nocompile/m/mangleof_18_A.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFFZYQhLK5blCcjpWoRAoC1AJ9erbStgxuxoOju69NKbhvs/ChlkwCfRMhU RR8bVp13NogS5ChNVtyW7Z0= =I9m1 -----END PGP SIGNATURE-----
Nov 23 2006