Thread overview |
---|
December 16, 2009 [Issue 3620] New: Address of member of global struct isn't constant | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=3620 Summary: Address of member of global struct isn't constant Product: D Version: 1.051 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: default_357-line@yahoo.de --- Comment #0 from downs <default_357-line@yahoo.de> 2009-12-16 07:10:47 PST --- Created an attachment (id=524) Make address of member of global struct constant When taking the address of a member of a global struct, as in struct S { int x; } S s; const int* p = &s.x; The above fails on 1.051 with "Error: non-constant expression &s.x" The attached patch fixes this. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
December 24, 2009 [Issue 3620] Address of member of global struct isn't constant | ||||
---|---|---|---|---|
| ||||
Posted in reply to downs | http://d.puremagic.com/issues/show_bug.cgi?id=3620 --- Comment #1 from downs <default_357-line@yahoo.de> 2009-12-23 21:31:08 PST --- Nevermind, seems it breaks Tango .. somehow. http://www.dsource.org/projects/ldc/ticket/384 Color me confused. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 13, 2010 [Issue 3620] Address of member of global struct isn't constant | ||||
---|---|---|---|---|
| ||||
Posted in reply to downs | http://d.puremagic.com/issues/show_bug.cgi?id=3620 Don <clugdbug@yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|patch | CC| |clugdbug@yahoo.com.au --- Comment #2 from Don <clugdbug@yahoo.com.au> 2010-01-13 00:31:13 PST --- Removing 'patch' keyword since the patch is known to be incorrect. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation