[Issue 19162] New: [REG: 2.079.0] Public Import Overlapping Names Conflict Resolution

2018-08-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19162

  Issue ID: 19162
   Summary: [REG: 2.079.0] Public Import Overlapping Names
Conflict Resolution
   Product: D
   Version: D2
  Hardware: x86_64
OS: All
Status: NEW
  Severity: regression
  Priority: P1
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: look.at.me.pee.ple...@gmail.com

The following works in 2.078.1 but stopped working in 2.079.0. Seems to be
selecting std.math.abs instead of vec.abs which are both publicly imported in
module 'math'.


/../phobos\std\math.d(564): Error: incompatible types for `(x) >= (0)`:
`Vector!(float, 3)` and `int`
/../phobos\std\math.d(564): Error: `x` is not of arithmetic type, it is a
`Vector!(float, 3)`
\test\main.d(9): Error: template instance `std.math.abs!(Vector!(float, 3))`
error instantiating


***

// main.d
import math;


void main()
{
Vector!(float, 3) v;

auto t = abs(v);
}

***

// vec.d
module vec;


struct Vector(T, int size)
{
T x, y, z;
}

auto abs(T, int size)(auto ref const Vector!(T, size) v)
{
return v;
}


***

// math.d
module math;

public
{
import std.math; // order doesn't change error
import vec;
}

***

--


[Issue 19112] Associative array opIn with static array key fails with dynamic array

2018-08-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19112

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

https://github.com/dlang/dmd/commit/e1701d74f5b51a1e7bdb26ee8e80887e4f537af7
fix issue 19112 - Associative array opIn with static array key fails with
dynamic array

https://github.com/dlang/dmd/commit/21fcc7c518b574f4f59bafe55b7348cd3b949313
Merge pull request #8516 from aG0aep6G/19112

fix issue 19112 - Associative array opIn with static array key fails …

--


[Issue 19076] dmd 2.081 crashed by getVirtualFunctions for a interface extended interface

2018-08-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19076

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

https://github.com/dlang/dmd/commit/945a58edd628df96a8a7e134616d5c3808ed5004
Fix Issue 19076 - dmd 2.081 crashed by getVirtualFunctions for a interface
extended interface

https://github.com/dlang/dmd/commit/e810f3f6ce93ea1b6f294dfe7d646ad6395500c1
Merge pull request #8486 from RazvanN7/Issue_19076

[REG] Fix Issue 19076 - dmd 2.081 crashed by getVirtualFunctions for a
interface extended interface

--


[Issue 19074] [REG 2.080] SIGSEGV in el_ptr (s=0x15) at dmd/backend/el.c:1760

2018-08-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19074

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

https://github.com/dlang/dmd/commit/270fae41cd18c986c8c3900acea185d7d7b39838
Fix Issue 19074: Internal error: dmd/backend/el.c 1760

https://github.com/dlang/dmd/commit/55094b185b0f3e7d57cb242b523ff7712a6fd114
Merge pull request #8483 from ibuclaw/issue19074

Fix Issue 19074: Internal error: dmd/backend/el.c 1760

--


[Issue 19108] Unknown pragmas not ignored inside body

2018-08-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19108

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

https://github.com/dlang/dmd/commit/777f227c68ead772ce71fbc098c8f07fb6b9d289
Fix Issue 19108 - Unknown pragmas not ignored inside body

https://github.com/dlang/dmd/commit/83b6986aaa52c12f7aa5d7507899d4d629374daf
Merge pull request #8552 from JinShil/fix_19108

Fix Issue 19108 - Unknown pragmas not ignored inside body
merged-on-behalf-of: Razvan Nitu 

--


[Issue 19161] Wrong mangle for C++ classes

2018-08-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19161

Илья Ярошенко  changed:

   What|Removed |Added

   Keywords||C++, mangling

--


[Issue 19161] New: Wrong mangle for C++ classes

2018-08-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19161

  Issue ID: 19161
   Summary: Wrong mangle for C++ classes
   Product: D
   Version: D2
  Hardware: All
OS: Windows
Status: NEW
  Severity: enhancement
  Priority: P1
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: ilyayaroshe...@gmail.com

extern(C++)
{

class Foo
{

}

void foo(Foo);

pragma(msg, foo.mangleof);

}


mangled to:
void __cdecl foo(class Foo * __ptr64)

expected (because of common C++ & STL practice):
void __cdecl foo(class Foo & __ptr64)

--