On 4 July 2014 14:01, Daniel Murphy via Digitalmars-d <digitalmars-d@puremagic.com> wrote: > > "Iain Buclaw via Digitalmars-d" <digitalmars-d@puremagic.com> wrote in > message news:mailman.3265.1404477916.2907.digitalmar...@puremagic.com... > > >> FP types are fixed. float is 32bit, double 64bit. > > > That's 2/3. > > >> What 's the mangling problem with long double? There's only *one* long >> double. > >' > long double may not be the same size as D's real, eg in msvc it's 64-bit. > You can still still call these functions from D using double in C, but the > mangling will not match in C++. >
You're confusing long double with size_t. I did a cursory look up msvc++ mangling, and long double is always 'O'. The itanium spec says that long double is 'e' - unless 128bits in which case it is 'g'. Iain.