September 11, 2008 [Issue 2353] New: Assertion failure on template function auto return type deduction | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=2353 Summary: Assertion failure on template function auto return type deduction Product: D Version: 2.019 Platform: PC OS/Version: Windows Status: NEW Keywords: ice-on-invalid-code Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: snake.scaly@gmail.com The following code: auto Sub(T:E[S],E,size_t S)(T arr) {return cast(E[S-1])arr[1..$];} pragma(msg, typeof(Sub("foo")).stringof); causes output: >dmd -c test2.d test2.d(4): Error: forward reference to type T test2.d(4): Error: cannot implicitly convert expression ("foo") of type invariant(char[3u]) to T Assertion failure: 'type' on line 6308 in file 'expression.c' abnormal program termination -- |
May 14, 2009 [Issue 2353] Assertion failure on template function auto return type deduction | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2353 Don <clugdbug@yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |clugdbug@yahoo.com.au Resolution| |FIXED --- Comment #1 from Don <clugdbug@yahoo.com.au> 2009-05-14 03:39:14 PDT --- Fixed sometime before D2.029. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation