On Tue, Feb 21, 2012 at 12:17 PM, Douglas Gregor <[email protected]> wrote:
>>>     void VisitBlockDeclRefExpr(BlockDeclRefExpr *E) {
>>> +      // If we were asked not to visit local variables, don't.
>>> +      if (SkipLocalVariables && E->getDecl()->hasLocalStorage())
>>> +          return;
>>
>> What exactly are the rules for odr-use marking inside a lambda in a
>> default argument, actually?
>
> That is an *excellent* question. We're trying to emulate what would have 
> happened if the expression had been written in a potentially evaluated 
> context, by walking the resulting tree, and it's fairly likely that we don't 
> get all of the cases right.

Filed PR12064; there are probably some other issues, but it's probably
not worth looking for them until we figure out how to fix that one.

-Eli

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to