369 – "immediate"-function types allowed as part of delegate/function types.

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 369 - "immediate"-function types allowed as part of delegate/function types.
Summary: "immediate"-function types allowed as part of delegate/function types.
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: x86 Windows
: P2 normal
Assignee: Walter Bright
URL:
Keywords: accepts-invalid, ice-on-invalid-code
Depends on:
Blocks:
Reported: 2006年09月26日 07:11 UTC by Bruno Medeiros
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 Bruno Medeiros 2006年09月26日 07:11:31 UTC
Similarly to 368, "immediate"-function types allowed as part of delegate/function types :
--------
void func() { }
int delegate(typeof(func)) dg;
int function(typeof(func)) fp;
typeof(func) delegate() dg2;
typeof(func) function() fp2;
void test() {
 dg2(); // ICE: Internal error: ..\ztc\cod1.c 2331
}
----
Comment 1 Walter Bright 2006年10月04日 19:58:07 UTC
Fixed DMD 0.168
Comment 2 Thomas Kühne 2006年10月06日 02:10:34 UTC
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
d-bugmail@puremagic.com schrieb am 2006年09月26日:
> http://d.puremagic.com/issues/show_bug.cgi?id=369 
> Similarly to 368, "immediate"-function types allowed as part of
> delegate/function types :
>
> --------
> void func() { }
>
> int delegate(typeof(func)) dg;
> int function(typeof(func)) fp;
> typeof(func) delegate() dg2;
> typeof(func) function() fp2;
>
> void test() {
> dg2(); // ICE: Internal error: ..\ztc\cod1.c 2331
> }
> ----
Added to DStress as
http://dstress.kuehne.cn/nocompile/t/typeof_12_C.d
http://dstress.kuehne.cn/nocompile/t/typeof_12_D.d
Thomas
-----BEGIN PGP SIGNATURE-----
iD8DBQFFJgHALK5blCcjpWoRAjfKAJ46F8HlcAOrZ6Yajgk05kOWmoRZ4ACgqpQ4
wLjvPWrx3iwUJxQkTGUqQYc=
=AO23
-----END PGP SIGNATURE-----


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