www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 639] New: Escaped tuple parameter ICEs dmd

reply d-bugmail puremagic.com writes:
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.


-- 
Dec 03 2006
next sibling parent Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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 -----BEGIN PGP SIGNATURE----- iD8DBQFFfEkDLK5blCcjpWoRAiwoAJ9K+uYIIY7N2dQf+AC1OHeLRLV2XQCbBpHJ ws0KN2BNvjI9l5J7+BneeK8= =JZxF -----END PGP SIGNATURE-----
Dec 10 2006
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=639


thomas-dloop kuehne.cn changed:

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





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)


-- 
Apr 27 2007
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=639


bugzilla digitalmars.com changed:

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





Fixed DMD 1.018 and DMD 2.002


-- 
Jul 01 2007