639 – Escaped tuple parameter ICEs dmd

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 639 - Escaped tuple parameter ICEs dmd
Summary: Escaped tuple parameter ICEs dmd
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: x86 All
: P2 normal
Assignee: Walter Bright
URL:
Keywords:
Depends on:
Blocks:
Reported: 2006年12月03日 11:21 UTC by Kazuhiro Inaba
Modified: 2014年02月15日 13:19 UTC (History)
0 users

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description Kazuhiro Inaba 2006年12月03日 11:21:55 UTC
// 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.
Comment 1 Thomas Kühne 2006年12月10日 11:05:35 UTC
-----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-----
Comment 2 Thomas Kühne 2007年04月27日 12:39:31 UTC
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)
Comment 3 Walter Bright 2007年07月01日 13:26:59 UTC
Fixed DMD 1.018 and DMD 2.002


AltStyle によって変換されたページ (->オリジナル) /