www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 722] New: mixin as return value: expression.c:775: virtual void Expression::toMangleBuffer(OutBuffer*): Assertion `0' failed.

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

           Summary: mixin as return value: expression.c:775: virtual void
                    Expression::toMangleBuffer(OutBuffer*): Assertion `0'
                    failed.
           Product: D
           Version: 0.177
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: thomas-dloop kuehne.cn


(Originaly reported by Wang Zhen <nehzgnaw gmail.com> on 2006-02-17
as news:dt4a71$2hva$1 digitaldaemon.com)

#
# template t(int t){
# }
#
# int main(){
#    return t!(main());
# }
#

test cases:
http://dstress.kuehne.cn/nocompile/t/template_30_A.d
http://dstress.kuehne.cn/nocompile/t/template_30_B.d
http://dstress.kuehne.cn/nocompile/t/template_30_C.d
http://dstress.kuehne.cn/nocompile/t/template_30_D.d
http://dstress.kuehne.cn/nocompile/t/template_30_E.d


-- 
Dec 23 2006
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=722


thomas-dloop kuehne.cn changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nehzgnaw gmail.com,
                   |                            |clugdbug yahoo.com.au




------- Comment #1 from thomas-dloop kuehne.cn  2006-12-23 07:10 -------
in addition:

(Originally reported by Don Clugston <dac nospam.com.au>
on 2006-01-25 in news:dr7r09$1jf9$1 digitaldaemon.com)

#
# template tree(int n){
#    const int tree = n;
# }
#
# template getsize(){
#    const int getsize = sizeof(tree!(2));
# }
#
# template forest() {
#    const int sz = getsize!();
#    const int done = tree!( sz );
# }
#
# int crash = forest!().done;
#

testcases:
http://dstress.kuehne.cn/nocompile/s/sizeof_16_B.d
http://dstress.kuehne.cn/nocompile/s/sizeof_16_C.d


-- 
Dec 23 2006
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=722


thomas-dloop kuehne.cn changed:

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




------- Comment #2 from thomas-dloop kuehne.cn  2007-03-02 08:28 -------
fixed in DMD-0.178


-- 
Mar 02 2007