[Issue 4225] mangle.c:81: char* mangle(Declaration*): Assertion `fd && fd->inferRetType' failed.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Feb 3 23:59:18 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=4225
yebblies <yebblies at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|ice |rejects-valid
CC| |yebblies at gmail.com
Platform|Other |All
Version|1.057 |D2
--- Comment #3 from yebblies <yebblies at gmail.com> 2012-02-04 18:59:17 EST ---
Compiles without error on D1 (1.072)
Give a forward reference error with D2 (2.058)
struct Foo {
enum x = Foo();
static Foo opCall() {
return Foo.init;
}
}
testx.d(5): Error: forward reference to type Foo
testx.d(5): Error: cannot implicitly convert expression (Foo()) of type Foo to
Foo
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list