[Issue 19499] __c_long_double brake template specialization
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Dec 21 08:16:37 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=19499
Илья Ярошенко <ilyayaroshenko at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|WONTFIX |---
--- Comment #2 from Илья Ярошенко <ilyayaroshenko at gmail.com> ---
(In reply to Walter Bright from comment #1)
> The error message is:
>
> Error: undefined identifier __c_long_double, did you mean alias
> c_long_double?
>
> In general, avoid using names prefixed by __, as they are reserved for the
> compiler. Change it to c_long_double, and it will compile.
No, as was mentioned in the issue it is for Microsoft runtime and looks like
you compile the code with DigitalMars runtime.
https://github.com/dlang/druntime/blob/master/src/core/stdc/config.d#L156
----
version (CRuntime_Microsoft)
{
enum __c_long_double : double;
alias __c_long_double c_long_double;
}
else version (DigitalMars)
-----
as you can see it does not matter what to use in the issue: __c_long_double or
c_long_double. __c_long_double was used because it appears in the compiler
error msg.
--
More information about the Digitalmars-d-bugs
mailing list