[Issue 19372] Request for more "D style" win32api

2018-11-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19372

--- Comment #2 from anonymous4  ---
Stuff like MessageBoxA can never be d style because it's not a unicode
function. You will need a layer on top of these functions, see
https://wiki.dlang.org/Libraries_and_Frameworks#GUI_Libraries

--


[Issue 19373] New: can't link dmd on macOS

2018-11-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19373

  Issue ID: 19373
   Summary: can't link dmd on macOS
   Product: D
   Version: D2
  Hardware: x86_64
OS: Mac OS X
Status: NEW
  Severity: critical
  Priority: P1
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: john.loughran.col...@gmail.com

Created attachment 1715
  --> https://issues.dlang.org/attachment.cgi?id=1715&action=edit
linker errors

make -f posix.mak fails with a long list of missing symbols, please find output
attached

--


[Issue 19373] can't link dmd on macOS

2018-11-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19373

Jacob Carlborg  changed:

   What|Removed |Added

 CC||d...@me.com

--- Comment #1 from Jacob Carlborg  ---
Works for me. I noticed this in your output:

ld: warning: ignoring file ../generated/osx/release/64/backend.a, file was
built for archive which is not the architecture being linked (x86_64):
../generated/osx/release/64/backend.a

Do you have some leftovers from a previous builds?

--


[Issue 19373] can't link dmd on macOS

2018-11-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19373

--- Comment #2 from Jacob Carlborg  ---
I've tried compiling with DMD 2.081.0 to 2.083.0.

--


[Issue 19374] New: TypeVector undefined in grammar

2018-11-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19374

  Issue ID: 19374
   Summary: TypeVector undefined in grammar
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: minor
  Priority: P1
 Component: dlang.org
  Assignee: nob...@puremagic.com
  Reporter: peter.alexander...@gmail.com

BasicType references TypeVector, but TypeVector is undefined (apart from the
ABI definition, which is unrelated).

I'm guessing this is supposed to refer to the vector extensions? Perhaps the
following rule will suffice:

TypeVector:
  '__vector' '(' Type ')'

--


[Issue 19375] New: .init of a nested struct stumps the inliner

2018-11-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19375

  Issue ID: 19375
   Summary: .init of a nested struct stumps the inliner
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: normal
  Priority: P1
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: stanislav.bli...@gmail.com

union Erase(T) { T typed; }

void func(T)() {
pragma(inline, true);
auto e = Erase!T(T.init);
}

void main() {
version (TestNested) {
struct S { ~this() {} /* so that it's nested */ }
} else {
static struct S { ~this() {} }
}
func!S;
}

$ dmd -inline test.d
Compiles

$ dmd -inline -version=TestNested test.d
test.d(3): Error: function `test.func!(S).func` cannot inline function

--


[Issue 19376] New: Don't generate object file from .di file passed on command line

2018-11-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19376

  Issue ID: 19376
   Summary: Don't generate object file from .di file passed on
command line
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: normal
  Priority: P1
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: bugzi...@digitalmars.com

A .di file is only supposed to be an interface. Generating code from it causes
a collision with the object code generated by the corresponding .d file.

.di files can be passed on the command line if they have different paths/names
from the module declaration in the file itself.

--


[Issue 19376] Do not generate object file from .di file passed on command line

2018-11-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19376

Walter Bright  changed:

   What|Removed |Added

Summary|Don't generate object file  |Do not generate object file
   |from .di file passed on |from .di file passed on
   |command line|command line

--


[Issue 19376] Do not generate object file from .di file passed on command line

2018-11-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19376

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

--


[Issue 19375] .init of a nested struct stumps the inliner

2018-11-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19375

Basile B.  changed:

   What|Removed |Added

 CC||b2.t...@gmx.com
   See Also||https://issues.dlang.org/sh
   ||ow_bug.cgi?id=16360

--- Comment #1 from Basile B.  ---
just a nested type is sufficiet to prevent inlining. possibly a duplicated of
https://issues.dlang.org/show_bug.cgi?id=16360

--


[Issue 16360] DMD fails to inline functions that contain a type

2018-11-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16360

Basile B.  changed:

   What|Removed |Added

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

--


[Issue 19197] Replace instances of typeid(T).getHash(..) with hashOf

2018-11-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19197

github-bugzi...@puremagic.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--


[Issue 19197] Replace instances of typeid(T).getHash(..) with hashOf

2018-11-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19197

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

https://github.com/dlang/phobos/commit/f784f74dada2f64153ed52243fa46a5156897547
Fix Issue 19197 - Replace instances of typeid(T).getHash(..) with hashOf

https://github.com/dlang/phobos/commit/f626143a43b7a5312ba28ab57ab2351da23960c9
Merge pull request #6699 from n8sh/issue-19197

Fix Issue 19197 - Replace instances of typeid(T).getHash(..) with hashOf
merged-on-behalf-of: Nathan Sashihara 

--


[Issue 19337] [Reg 2.082.0] Cannot call std.algorithm.sort twice

2018-11-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19337

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

https://github.com/dlang/phobos/commit/a8e9857756e1b1db5735c31c2085569c95a7d6e6
fix Issue 19337 - cannot call std.algorithm.sort twice

- introduced with #6535 which stripped nested SortedRange types
  in assumeSorted, thus causing a mismatch between the return type
  of sort (SortedRange!(SortedRange!R)) and assumeSorted SortedRange!R
- fix by stripping nested SortedRange types in the SortedRange!R
  template instantiation

https://github.com/dlang/phobos/commit/ef206af1a0ae841724a38682d1e0073e631d4b3d
Merge pull request #6748 from MartinNowak/fix19337

fix Issue 19337 - cannot call std.algorithm.sort twice

--


[Issue 19337] [Reg 2.082.0] Cannot call std.algorithm.sort twice

2018-11-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19337

github-bugzi...@puremagic.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--