[Issue 7770] __dollar cannot be read at compile time
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Mar 25 17:47:42 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7770
dawg at dawgfoto.de changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |CTFE
Status|RESOLVED |REOPENED
Resolution|INVALID |
--- Comment #2 from dawg at dawgfoto.de 2012-03-25 17:48:06 PDT ---
cat > bug.d << CODE
immutable char[5] foo = "abcde";
int bar(string a, string b)
{
return 0;
}
void baz()
{
enum s = bar(foo, foo[0 .. $]);
}
// Assertion failed: (!v->isDataseg() || v->isCTFE()), function push, file
interpret.c, line 108.
version (none)
enum s = bar(foo, foo[0 .. $]);
CODE
dmd -c bug
--------
Sorry, you're point was obviously that __dollar should be resolvable
at compile time.
--
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