On 2012.10.27 at 09:02 +0200, Markus Trippelsdorf wrote:
> The problem here is that we end up with an INDIRECT_REF TREE_CODE with a
> null TREE_TYPE in lvalue_kind. Is this possible at that point, or does
> it point to a deeper underlying problem?

It looks like there is indeed a deeper problem. See PR53137, PR53697 and 
PR54431 (which are all dups of one another). 

For example:

template<class>struct A
{
  void blah();
  void bar()
  {
    [this] { blah(); } (); // crash without this->blah()
  }
};

int main()
{
  A<int> a;
  a.bar();
}


-- 
Markus

Reply via email to