On Sat, Nov 15, 2008 at 9:55 PM, Zhongxing Xu <[EMAIL PROTECTED]> 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*.
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to