[Issue 16166] struct constructor and AliasSeq

2016-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16166

--- Comment #2 from Danila Letunovskiy  ---
struct Window {
string title;
int x, y;
int w, h;
alias title this;
}

void main(){
Window w = "Foo";
}

--


[Issue 10524] Switch skips initialization of 'with' variable

2016-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10524

Walter Bright  changed:

   What|Removed |Added

   Keywords||pull
 CC||bugzi...@digitalmars.com

--- Comment #4 from Walter Bright  ---
https://github.com/dlang/dmd/pull/5869

--


[Issue 14532] switch block allows creating uninitialized variables

2016-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14532

Walter Bright  changed:

   What|Removed |Added

   Keywords||pull

--- Comment #2 from Walter Bright  ---
https://github.com/dlang/dmd/pull/5869

--


[Issue 16175] allow statements and declaration in a compiles block

2016-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16175

Ketmar Dark  changed:

   What|Removed |Added

 CC||ket...@ketmar.no-ip.org

--


[Issue 16175] allow statements and declaration in a compiles block

2016-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16175

--- Comment #1 from Ketmar Dark  ---
actually, most of the time you can do that with this:

__traits(compiles,{int* cMutable = &c;})

just use lambda syntax -- we have many of 'em in D. ;-)

--


[Issue 16167] chm-nav.json generation is broken

2016-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16167

--- Comment #1 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/dlang.org

https://github.com/dlang/dlang.org/commit/7a04b5b8152400957c1d12752446175a72f33a2f
fix Issue 16167 - chm-nav.json generation is broken

https://github.com/dlang/dlang.org/commit/c3763ba0ae7f04f17c35629a23efaf83d3bff04b
Merge pull request #1374 from MartinNowak/fix16167

fix Issue 16167 - chm-nav.json generation is broken

--


[Issue 16176] Unreachable code not detected with -w

2016-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16176

Walter Bright  changed:

   What|Removed |Added

   Keywords||pull

--


[Issue 16176] Unreachable code not detected with -w

2016-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16176

--- Comment #1 from Walter Bright  ---
https://github.com/dlang/dmd/pull/5868

--


[Issue 16165] Better error message for mismatched function argument types

2016-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16165

Sobirari Muhomori  changed:

   What|Removed |Added

   Keywords||diagnostic

--


[Issue 16176] New: Unreachable code not detected with -w

2016-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16176

  Issue ID: 16176
   Summary: Unreachable code not detected with -w
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: normal
  Priority: P1
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: bugzi...@digitalmars.com

void main () {
char ch = '!';
switch (ch) {
  ch = 'a';   // unreachable code
  case '!': break;
  default:
}
  }

--


[Issue 16141] Organizations page unreachable

2016-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16141

--- Comment #2 from github-bugzi...@puremagic.com ---
Commit pushed to revert-1358-add_orgs_menu_item at
https://github.com/dlang/dlang.org

https://github.com/dlang/dlang.org/commit/0f7149c60918bcfd2a766d92ccd4bc36ccd9ca30
Revert "Fix issue 16141 - Organizations page should have a menu item"

--


[Issue 16175] New: allow statements and declaration in a compiles block

2016-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16175

  Issue ID: 16175
   Summary: allow statements and declaration in a compiles block
   Product: D
   Version: D2
  Hardware: x86_64
OS: Linux
Status: NEW
  Severity: enhancement
  Priority: P1
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: greensunn...@gmail.com

it would be sometimes nice to be able to use expressions and statements inside
the compiles block:

```
int c = 5;
static assert(!__traits(compiles,int* cMutable = &c));
```

I understand if the rationale was to keep `compiles` simple, because most
things can be done with expressions.

Anyway, e.g. for teaching this is quite nice:

https://github.com/stonemaster/dlang-tour/pull/144

--


[Issue 602] Compiler allows a goto statement to skip an initalization

2016-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=602

Walter Bright  changed:

   What|Removed |Added

   See Also||https://issues.dlang.org/sh
   ||ow_bug.cgi?id=14532

--


[Issue 10524] Switch skips initialization of 'with' variable

2016-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10524

Walter Bright  changed:

   What|Removed |Added

   See Also||https://issues.dlang.org/sh
   ||ow_bug.cgi?id=14532

--


[Issue 14532] switch block allows creating uninitialized variables

2016-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14532

Walter Bright  changed:

   What|Removed |Added

 CC||bugzi...@digitalmars.com
   See Also||https://issues.dlang.org/sh
   ||ow_bug.cgi?id=10524,
   ||https://issues.dlang.org/sh
   ||ow_bug.cgi?id=602

--