https://issues.dlang.org/show_bug.cgi?id=17764
Walter Bright changed:
What|Removed |Added
Status|REOPENED|RESOLVED
Resolution|---
https://issues.dlang.org/show_bug.cgi?id=17764
--- Comment #7 from Walter Bright ---
Declaring c as:
S c = S();
does cause it to be inferred to be `scope`, and the next line is then correctly
diagnosed.
So, the trouble is the scope inference should be looking at the elements of the
static
https://issues.dlang.org/show_bug.cgi?id=17764
--- Comment #6 from Walter Bright ---
The `c` should be inferred as `scope`.
--
https://issues.dlang.org/show_bug.cgi?id=17764
--- Comment #5 from Walter Bright ---
A simpler version that should fail to compile:
int** global;
struct S { int** str; }
void f() @safe
{
int* buf;
S[1] c = S();
global = c[0].str; /* This should be rejected. */
}
--
https://issues.dlang.org/show_bug.cgi?id=17764
Walter Bright changed:
What|Removed |Added
See Also||https://issues.dlang.org/sh
https://issues.dlang.org/show_bug.cgi?id=17764
ag0aep6g changed:
What|Removed |Added
Status|RESOLVED|REOPENED
CC|
https://issues.dlang.org/show_bug.cgi?id=17764
Walter Bright changed:
What|Removed |Added
Status|NEW |RESOLVED
https://issues.dlang.org/show_bug.cgi?id=17764
Carsten Blüggel changed:
What|Removed |Added
CC||chi...@posteo.net
--
https://issues.dlang.org/show_bug.cgi?id=17764
Walter Bright changed:
What|Removed |Added
CC|
https://issues.dlang.org/show_bug.cgi?id=17764
ZombineDev changed:
What|Removed |Added
Keywords||accepts-invalid,
10 matches
Mail list logo