[Issue 8704] Invalid nested struct constructions should be detected
https://issues.dlang.org/show_bug.cgi?id=8704 --- Comment #6 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/da0be7592a903af33da5d65792e38e265f560bb3 fix Issue 8704 - Invalid nested struct constructions should be detected https://github.com/D-Programming-Language/dmd/commit/3232f56a34900bd4228c22134b637464bb37ed0c Merge pull request #1133 from 9rnsr/fix8704 Issue 8704 - Invalid nested struct constructions should be detected --
[Issue 8704] Invalid nested struct constructions should be detected
https://issues.dlang.org/show_bug.cgi?id=8704 github-bugzi...@puremagic.com changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|--- |FIXED --
[Issue 8704] Invalid nested struct constructions should be detected
https://issues.dlang.org/show_bug.cgi?id=8704 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|WORKSFORME |--- --- Comment #4 from Kenji Hara k.hara...@gmail.com --- (In reply to yebblies from comment #3) The pull request wasn't merged, but both cases now error. The opening test case still does not cause front-end errors (no error occur with -o- switch). And T t; should also be rejected if T is nested struct. Updated test case is: void check(T)() { // nested struct constructions outside valid frame scope T t0; // new! T t1 = T(); T t2 = T(1); } void main() { struct S { int n; void foo(){} } check!S(); } (In reply to Kenji Hara from comment #1) https://github.com/D-Programming-Language/dmd/pull/1133 I reopened the pull request to fix this issue perfectly. --
[Issue 8704] Invalid nested struct constructions should be detected
https://issues.dlang.org/show_bug.cgi?id=8704 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added CC||kenn...@gmail.com --- Comment #5 from Kenji Hara k.hara...@gmail.com --- *** Issue 5902 has been marked as a duplicate of this issue. *** --
[Issue 8704] Invalid nested struct constructions should be detected
https://d.puremagic.com/issues/show_bug.cgi?id=8704 yebblies yebbl...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED CC||yebbl...@gmail.com Resolution||WORKSFORME --- Comment #3 from yebblies yebbl...@gmail.com 2013-11-25 01:03:57 EST --- The pull request wasn't merged, but both cases now error. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 8704] Invalid nested struct constructions should be detected
http://d.puremagic.com/issues/show_bug.cgi?id=8704 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||pull --- Comment #1 from Kenji Hara k.hara...@gmail.com 2012-09-21 07:08:49 PDT --- https://github.com/D-Programming-Language/dmd/pull/1133 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 8704] Invalid nested struct constructions should be detected
http://d.puremagic.com/issues/show_bug.cgi?id=8704 Andrej Mitrovic andrej.mitrov...@gmail.com changed: What|Removed |Added CC||andrej.mitrov...@gmail.com --- Comment #2 from Andrej Mitrovic andrej.mitrov...@gmail.com 2012-09-21 08:25:16 PDT --- What exact rules does the language define for these function-nested types? It seems arbitrary that some things are allowed while others are not, for example this works: void check(T)() { T t = T.init; t.foo(); } void main() { struct S { int n; void foo(){} } check!S(); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---