1593 – ICE compiler crash empty return statement in function

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 1593 - ICE compiler crash empty return statement in function
Summary: ICE compiler crash empty return statement in function
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: x86 All
: P3 minor
Assignee: Walter Bright
URL:
Keywords: ice-on-invalid-code
Depends on:
Blocks:
Reported: 2007年10月18日 17:50 UTC by simon
Modified: 2014年02月16日 15:23 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 simon 2007年10月18日 17:50:23 UTC
Following code cause dmd to crash.
struct A {
}
A MakeA() {
	return ;
}
static const A aInstance = MakeA();
with dmd versions 1.015 & 1.021
Comment 1 BCS 2007年10月18日 17:59:54 UTC
Is that the correct code? It's not a template.
(If DMD chokes it's still a bug)
Does the CTFE make a difference?
Comment 2 simon 2007年10月18日 18:04:54 UTC
yes the code is (in)correct.
I thought it was a template bug to start with, but I pared it down to above.
I missed the fact it's no longer a template... never submit a bug report after a beer.
Comment 4 Walter Bright 2007年11月03日 21:50:28 UTC
Fixed dmd 1.023 and 2.007


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