[PATCH] D20821: Fix a few issues while skipping function bodies

Olivier Goffart via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 9 05:11:19 PDT 2016


ogoffart added a comment.

The idea is that when we see a ") {"  or "} {"  in the ctor-initializers, (optionally with "..."), it is necessarily the start of the body.

Unless there might be lambda expressions within a template aregument, as in:

    
  A::A() : Base<[](){return 42; }()>(){}

But this is not valid because lambda expression cannot appear in this context as far as i know since lambda expression cannot appear in template argument


http://reviews.llvm.org/D20821





More information about the cfe-commits mailing list