digitalmars.D.bugs - [Issue 4195] New: Forward reference error with struct opCall and const
- d-bugmail puremagic.com (33/33) May 16 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4195
http://d.puremagic.com/issues/show_bug.cgi?id=4195
Summary: Forward reference error with struct opCall and const
Product: D
Version: unspecified
Platform: Other
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody puremagic.com
ReportedBy: strtr despam.it
module main;
//const S S1 = S(); // uncomment this to compile
struct S
{
float value;
static S opCall()
{
S s;
return s;
}
const S S2 = S();
}
void main(){}
--
main.d(4): Error: struct main.S no size yet for forward reference
main.d(4): Error: struct main.S no size yet for forward reference
main.d(11): Error: cannot evaluate opCall() at compile time
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 16 2010








d-bugmail puremagic.com