www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 405] New: typeof in TemplateParameterList causes compiletime segmentfault

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

           Summary: typeof in TemplateParameterList causes compiletime
                    segmentfault
           Product: D
           Version: 0.168
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: thomas-dloop kuehne.cn


#
# template square(typeof(x) x){
#     const square = x * x;
# }
# 
# const b = square!(1.2);
#


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


bugzilla digitalmars.com changed:

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




------- Comment #1 from bugzilla digitalmars.com  2006-10-10 03:32 -------
Fixed DMD 0.169


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

d-bugmail puremagic.com schrieb am 2006-10-06:
 http://d.puremagic.com/issues/show_bug.cgi?id=405

 #
 # template square(typeof(x) x){
 #     const square = x * x;
 # }
 # 
 # const b = square!(1.2);
 #

Added to DStress as http://dstress.kuehne.cn/nocompile/t/typeof_14_A.d http://dstress.kuehne.cn/nocompile/t/typeof_14_B.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFFLlAULK5blCcjpWoRAnKIAJ90zf9Q80eMgHvlWE/6j/kOyBOASACeP1H0 jhvVP+ddgSeW5jQCJ4Gl8R4= =e2j0 -----END PGP SIGNATURE-----
Oct 12 2006