On 2015-04-20 11:25, Marek Polacek wrote:
On Sat, Apr 18, 2015 at 06:53:28PM +0100, Adam Butcher wrote:
Test like this?

/* { dg-do run { target c++14 } }  */
/* { dg-final { scan-assembler-not "..." } }  */

What is this dg-final supposed to do here?

It was a placeholder for making sure that, once fixed, the lambda depending on only the static member function does not capture 'this'. I didn't get around to seeing whether that was possible from the asm output and if it were, what symbol I should check for the absence of. For now I have sizeof assertions but I suppose I could use an sfinae test for existence (or otherwise in this case) of the placeholder '__this'.

Reply via email to