[Issue 20600] C++ header output `-HC` can't write size_t correctly

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

moonlightsenti...@disroot.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||moonlightsentinel@disroot.o
   ||rg
 Resolution|--- |FIXED

--- Comment #3 from moonlightsenti...@disroot.org ---
Fixed in https://github.com/dlang/dmd/pull/10862

--


[Issue 20600] C++ header output `-HC` can't write size_t correctly

2020-02-23 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20600

--- Comment #2 from Manu  ---
I'm not sure how what you're saying relates to size_t?
I notice that when I use size_t in code, the type seems to be lost; is it just
an alias for a sized integer? It needs to retain the fact that it was specified
as size_t in the AST somehow.

--


[Issue 20600] C++ header output `-HC` can't write size_t correctly

2020-02-23 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20600

Jacob Carlborg  changed:

   What|Removed |Added

 CC||d...@me.com

--- Comment #1 from Jacob Carlborg  ---
It looks like `core.stdc.config.cpp_size_t` is supposed to be used to get the
correct size and mangling on all platforms. The compiler specially recognizes
`__c_long` and a couple of more symbols related to C and C++ interoperability,
see [1] for all of them.

[1]
https://github.com/dlang/dmd/blob/89d0cd492a5284ab67f665f3014b73905aecb4e2/src/dmd/id.d#L126-L131

--