This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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'.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |