[cfe-commits] r59232 - /cfe/trunk/lib/Analysis/GRExprEngine.cpp

Zhongxing Xu xuzhongxing at gmail.com
Sat Nov 15 06:04:05 PST 2008


On Sat, Nov 15, 2008 at 9:55 PM, Zhongxing Xu <xuzhongxing at gmail.com> wrote:

>
> One side problem is that I cannot make the MemRegion* in the ImmutableList
>> const. If I did that, I would get compile error, related to FoldingSet
>> Profile() overloading.
>>
>> It seems that ImmutableList cannot take a const type as template
> parameter, otherwise the  two Profile functions in the partial
> specialization of FoldingSetTrait would have the same signature.
> (FoldingSet.h:444, 447).
>

Is that a g++ bug: at FoldingSet.h:234, the parameter type has already been
const T&, but g++ still thinks T is 'const MemRegion*. I think T should be
instantiated only with MemRegion*.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20081115/37938ca6/attachment.html>


More information about the cfe-commits mailing list