[Issue 16479] Missing substitution while mangling C++ template parameter for functions

2019-06-08 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16479

Suleyman Sahmi (سليمان السهمي)  changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 CC||sahmi.soulaim...@gmail.com
 Resolution|FIXED   |---

--- Comment #10 from Suleyman Sahmi (سليمان السهمي) 
 ---
The substitution still fails with qualified types.

Example:

https://run.dlang.io/is/5BEekf
---
extern(C++, N)
{
struct S(T) {}
}

extern(C++):

S!T func(T)();
pragma(msg, func!int.mangleof);

N.S!T funq(T)();
pragma(msg, funq!int.mangleof);
---

output:

_Z4funcIiEN1N1SIT_EEv
_Z4funqIiEN1N1SIiEEv

S!T works, but N.S!T doesn't.

--


[Issue 19949] New: C++ Mangling doesn't implement abi-tags from the Itanium ABI

2019-06-08 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19949

  Issue ID: 19949
   Summary: C++ Mangling doesn't implement abi-tags from the
Itanium ABI
   Product: D
   Version: D2
  Hardware: All
OS: Linux
Status: NEW
  Severity: normal
  Priority: P1
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: sahmi.soulaim...@gmail.com

The Itanium ABI defines a C++ attribute called `abi_tag` which is used for ABI
versionning. For example std::string on linux uses it.
DMD doens't support this attribute yet which makes the C++ interface less
capable.

Specification:
https://itanium-cxx-abi.github.io/cxx-abi/abi.html#mangle.abi-tag

example:
---
#include 

std::string toString(char* s)
{
return s;
}
---

On Linux it mangles to _Z8toStringB5cxx11Pc, B5xcc11 is the abi_tag.

Related to issue #14956.

--


[Issue 19949] C++ Mangling doesn't implement abi-tags from the Itanium ABI

2019-06-08 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19949

Suleyman Sahmi (سليمان السهمي)  changed:

   What|Removed |Added

   Assignee|nob...@puremagic.com|sahmi.soulaim...@gmail.com

--


[Issue 19949] C++ Mangling doesn't implement abi-tags from the Itanium ABI

2019-06-08 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19949

Suleyman Sahmi (سليمان السهمي)  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED

--


[Issue 14956] C++ Mangling incompatible with C++11

2019-06-08 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14956

--- Comment #14 from Suleyman Sahmi (سليمان السهمي) 
 ---
I opened a dedicated issue for the abi_tag: issue #19949.

--


[Issue 19949] C++ Mangling: DMD doesn't implement abi-tags from the Itanium ABI

2019-06-08 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19949

Suleyman Sahmi (سليمان السهمي)  changed:

   What|Removed |Added

Summary|C++ Mangling doesn't|C++ Mangling: DMD doesn't
   |implement abi-tags from the |implement abi-tags from the
   |Itanium ABI |Itanium ABI

--


[Issue 19949] C++ Mangling: no support for abi-tags from the Itanium ABI

2019-06-08 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19949

Suleyman Sahmi (سليمان السهمي)  changed:

   What|Removed |Added

Summary|C++ Mangling: DMD doesn't   |C++ Mangling: no support
   |implement abi-tags from the |for abi-tags from the
   |Itanium ABI |Itanium ABI

--


[Issue 19947] OutOfMemoryError with GC-allocs

2019-06-08 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19947

Gregor Mückl  changed:

   What|Removed |Added

 CC||gregormue...@gmx.de

--- Comment #4 from Gregor Mückl  ---
I don't think that it can be false positives. Adding a GC.collect() call will
clean up the allocations; so the issue must rather be that collection is not
started for some reason. 

See also original forum discussion:
https://forum.dlang.org/thread/obkpctudtnnfojrbr...@forum.dlang.org

--


[Issue 18784] Segfault due to dmd codegen interfacing with C++

2019-06-08 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18784

Dlang Bot  changed:

   What|Removed |Added

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

--- Comment #2 from Dlang Bot  ---
dlang/dmd pull request #9946 "fix issue 18784 - cpp constructor returns void on
Posix" was merged into stable:

- 54bfe5bb7e2146293d475ac84cb0f471755b4482 by سليمان السهمي  (Suleyman Sahmi):
  fix issue 18784 - cpp constructor returns void on Posix

https://github.com/dlang/dmd/pull/9946

--


[Issue 19949] C++ Mangling: no support for abi-tags from the Itanium ABI

2019-06-08 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19949

Suleyman Sahmi (سليمان السهمي)  changed:

   What|Removed |Added

   Keywords||C++, mangling

--


[Issue 19949] C++ Mangling: no support for abi-tags from the Itanium ABI

2019-06-08 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19949

--- Comment #1 from Suleyman Sahmi (سليمان السهمي)  
---
https://github.com/dlang/dmd/pull/9995

--


[Issue 19949] C++ Mangling: no support for abi-tags from the Itanium ABI

2019-06-08 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19949

Suleyman Sahmi (سليمان السهمي)  changed:

   What|Removed |Added

  Alias||abi_tag

--


[Issue 19913] ICE: Segmentation fault with mixin and enum

2019-06-08 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19913

--- Comment #2 from Dlang Bot  ---
dlang/dmd pull request #1 "[dmd-cxx] fix Issue 19913 - ICE: Segmentation
fault with mixin and enum" was merged into dmd-cxx:

- cc0fc323cdaf310fa05bff518bcc2ba893191276 by Iain Buclaw:
  fix Issue 19913 - ICE: Segmentation fault with mixin and enum

https://github.com/dlang/dmd/pull/1

--


[Issue 19914] ICE: Segmentation fault with mixin and templated class

2019-06-08 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19914

--- Comment #3 from Dlang Bot  ---
dlang/dmd pull request #10001 "[dmd-cxx]  fix Issue 19914 - ICE: Segmentation
fault with mixin and templated class " was merged into dmd-cxx:

- d8646a90b55cd9a11415ba3e21a5dd3da4ca77a2 by Iain Buclaw:
  fix Issue 19914 - ICE: Segmentation fault with mixin and templated class

https://github.com/dlang/dmd/pull/10001

--


[Issue 19912] [module] No implicit import of object module when an object declaration exists.

2019-06-08 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19912

--- Comment #5 from Dlang Bot  ---
dlang/dmd pull request # "[dmd-cxx] fix Issue 19912: No implicit import of
object module when an object declaration exists." was merged into dmd-cxx:

- d8565a50b7dac926d8fa5cd93e22c4fb6527b643 by Iain Buclaw:
  fix Issue 19912: No implicit import of object module when an object
declaration exists.

https://github.com/dlang/dmd/pull/

--


[Issue 19915] ICE: Segmentation fault with alias and templated class

2019-06-08 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19915

--- Comment #4 from Dlang Bot  ---
dlang/dmd pull request #10001 "[dmd-cxx]  fix Issue 19914 - ICE: Segmentation
fault with mixin and templated class " was merged into dmd-cxx:

- 51d9234dcc380ec5cf30239576fad54530631fe4 by Iain Buclaw:
  fix Issue 19915 - ICE: Segmentation fault with alias and templated class

https://github.com/dlang/dmd/pull/10001

--


[Issue 19897] dinterpret.d:6439: Internal Compiler Error: null field

2019-06-08 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19897

--- Comment #3 from Dlang Bot  ---
dlang/dmd pull request #9997 "[dmd-cxx] fix Issue 19897 - dinterpret.d:6439:
Internal Compiler Error: null field" was merged into dmd-cxx:

- 2f3451edec98b382f96f1bbf5c897ec057c3ae37 by Iain Buclaw:
  fix Issue 19897 - dinterpret.d:6439: Internal Compiler Error: null field

https://github.com/dlang/dmd/pull/9997

--


[Issue 19898] ICE: in sizemask at dmd/mtype.d(2563): Assertion failure

2019-06-08 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19898

--- Comment #3 from Dlang Bot  ---
dlang/dmd pull request #9998 "[dmd-cxx] fix Issue 19898 - ICE: in sizemask at
dmd/mtype.d(2563): Assertion failure" was merged into dmd-cxx:

- 7cbdaf67ef714c447a2ea36318f8609b8d865ed2 by Iain Buclaw:
  fix Issue 19898 - ICE: in sizemask at dmd/mtype.d(2563): Assertion failure

https://github.com/dlang/dmd/pull/9998

--


[Issue 15407] Assert hit in toElem e2ir.c:1962

2019-06-08 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15407

--- Comment #6 from Dlang Bot  ---
dlang/dmd pull request #9996 "[dmd-cxx] Issue 15407 - Assert hit in toElem
e2ir.c:1962" was merged into dmd-cxx:

- 676e9377e17f661c61e31af6d9ae7f0519d3ae86 by Iain Buclaw:
  [dmd-cxx] Issue 15407 - Assert hit in toElem e2ir.c:1962

https://github.com/dlang/dmd/pull/9996

--