-cov and circular init deps

Jari-Matti Mäkelä jmjmak at utu.fi.invalid
Tue Mar 14 03:28:51 PST 2006


Walter Bright wrote:
> "Kris" <fu at bar.com> wrote in message news:dr3pn4$cil$1 at digitaldaemon.com...
>> Was trying out the -cov options, and ran into this gem again:
>>
>>     Error: circular initialization dependency with module Appender
>>
>> without -cov, there's no problem.
> 
> -cov adds a module initializer. What's likely happening is that Appender is 
> importing module X, which is importing Appender. Hence, the circular 
> dependency. 
> 
> 
Does this mean that the integrated code coverage should only be used,
when there are no circular module dependencies. Are there any possible
workarounds? This error only appears in the debug-build here. When
compiled with -release -inline -O, the runtime binary segfaults.

-- 
Jari-Matti



More information about the Digitalmars-d-bugs mailing list