Thread overview
[Issue 639] New: Escaped tuple parameter ICEs dmd
Dec 03, 2006
d-bugmail
Dec 10, 2006
Thomas Kuehne
Apr 27, 2007
d-bugmail
Jul 01, 2007
d-bugmail
December 03, 2006
http://d.puremagic.com/issues/show_bug.cgi?id=639

           Summary: Escaped tuple parameter ICEs dmd
           Product: D
           Version: 0.176
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: kinaba@is.s.u-tokyo.ac.jp


// credit goes to http://pc8.2ch.net/test/read.cgi/tech/1158013550/956
T* f(T...)(T x) {
  return null;
}
void main() {
  auto x = f(2,3,4);
  *x = *x;
}
----------------
Assertion failure: '0' on line 697 in file 'glue.c'

abnormal program termination


Although dmd 0.176 prohibits tuple return types,
it still seems to suffer pointers-to-tuple, arrays-of-tuple, etc.


-- 

December 10, 2006
d-bugmail@puremagic.com schrieb am 2006-12-03:
> http://d.puremagic.com/issues/show_bug.cgi?id=639

> // credit goes to http://pc8.2ch.net/test/read.cgi/tech/1158013550/956
> T* f(T...)(T x) {
>   return null;
> }
> void main() {
>   auto x = f(2,3,4);
>   *x = *x;
> }
> ----------------
> Assertion failure: '0' on line 697 in file 'glue.c'
>
> abnormal program termination
>
>
> Although dmd 0.176 prohibits tuple return types,
> it still seems to suffer pointers-to-tuple, arrays-of-tuple, etc.

Added to DStress as http://dstress.kuehne.cn/nocompile/t/tuple_06_A.d http://dstress.kuehne.cn/nocompile/t/tuple_06_B.d http://dstress.kuehne.cn/nocompile/t/tuple_06_C.d http://dstress.kuehne.cn/nocompile/t/tuple_06_D.d http://dstress.kuehne.cn/nocompile/t/tuple_06_E.d http://dstress.kuehne.cn/nocompile/t/tuple_06_F.d

Thomas


April 27, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=639


thomas-dloop@kuehne.cn changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         OS/Version|Windows                     |All




------- Comment #2 from thomas-dloop@kuehne.cn  2007-04-27 12:39 -------
Some test cases that didn't cause DMD-1.010 to ICE cause DMD-1.013 to ICE:
http://dstress.kuehne.cn/nocompile/t/tuple_06_B.d (-O, -inline, -release and
combinations thereof)
http://dstress.kuehne.cn/nocompile/t/tuple_06_F.d (-g)


-- 

July 01, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=639


bugzilla@digitalmars.com changed:

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




------- Comment #3 from bugzilla@digitalmars.com  2007-07-01 13:26 -------
Fixed DMD 1.018 and DMD 2.002


--