[Issue 2935] ICE(out.c) using struct with constructor as function default argument
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Apr 12 13:01:49 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=2935
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
--- Comment #6 from Don <clugdbug at yahoo.com.au> 2010-04-12 13:01:45 PDT ---
PATCH:
I think it's enough to change tocsym.c, VarDeclaration::toSymbol(),
around line 201. If it's a CTFE variable, it's shouldn't be marked as an
extern.
t->Tcount++;
- if (isDataseg())
+ if (isDataseg() && !isCTFE())
{
if (isThreadlocal())
{ /* Thread local storage
*/
TYPE *ts = t;
ts->Tcount++; // make sure a different t is allocated
--
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