www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ldc - The module std.experimental.logger in Ldc (0.16.1~0.17.1) is erro!

reply Dsby <dushibaiyu yahoo.com> writes:
/usr/include/d/std/experimental/logger/core.d(487): Error:
safe function
'std.experimental.logger.core.defaultLogFunction!cast(LogLevel)cast(ubyte)128u.defaultLogFunction!().defaultLogFunction'

cannot call system function

  
'std.experimental.logger.core.Logger.memLogFunctions!cast(LogLevel)cast(ubyte)128u.logImpl!().logImpl'

-----------------------------------------------------------------------
in File std/experimental/logger/core.d
line 482 and 494 , should delete  safe.

I compare vs dmd(2.071)'s std. and it work fine.
Apr 11 2016
next sibling parent Dsby <dushibaiyu yahoo.com> writes:
On Monday, 11 April 2016 at 07:15:26 UTC, Dsby wrote:
 /usr/include/d/std/experimental/logger/core.d(487): Error:
 safe function
 'std.experimental.logger.core.defaultLogFunction!cast(LogLevel)cast(ubyte)128u.defaultLogFunction!().defaultLogFunction'

 cannot call system function

  
 'std.experimental.logger.core.Logger.memLogFunctions!cast(LogLevel)cast(ubyte)128u.logImpl!().logImpl'

 -----------------------------------------------------------------------
 in File std/experimental/logger/core.d
 line 482 and 494 , should delete  safe.

 I compare vs dmd(2.071)'s std. and it work fine.
it donesn't have the error in LDC 1.0.0 alpha 1.
Apr 11 2016
prev sibling parent David Nadlinger via digitalmars-d-ldc <digitalmars-d-ldc puremagic.com> writes:
On 11 Apr 2016, at 8:15, Dsby via digitalmars-d-ldc wrote:
 /usr/include/d/std/experimental/logger/core.d(487): Error:
 safe function
 'std.experimental.logger.core.defaultLogFunction!cast(LogLevel)cast(ubyte)128u.defaultLogFunction!().defaultLogFunction'

 cannot call system function

 'std.experimental.logger.core.Logger.memLogFunctions!cast(LogLevel)cast(ubyte)128u.logImpl!().logImpl'
As mentioned on GitHub, this has also been reported here: https://github.com/ldc-developers/ldc/issues/1417 — David
Apr 11 2016