[cmake-developers] conditionals in generator expressions

Stephen Kelly steveire at gmail.com
Mon Sep 17 08:48:38 EDT 2012


Stephen Kelly wrote:

>> The destructor of cmCompiledGeneratorExpression is deleting
>> the evaluators before they get used again in later evals.
>> Commenting out the "delete" line fixes the crash but probably
>> leaks.  You need to work out the ownership semantics.
>>
> 
> Thanks. I'm too used to everything being implicitly shared :). Valgrind
> didn't show the problem, interestingly enough.

A colleague tells me that gcc generates code that doesn't actually 'guard' 
memory immediately when the dtor is called, but Windows does, which could 
explain everything.

Thanks,

Steve.





More information about the cmake-developers mailing list