[PATCH] Local classes in templates (PR9685 fix)

Richard Smith richard at metafoo.co.uk
Sun Aug 11 12:55:22 PDT 2013


  Hi,

  DR1484 seeks to clarify that local classes of function templates are *not*
  separately instantiated, and are instead instantiated as part of
  instantiating the surrounding function template. Once we implement that,
  the changes in this patch should become redundant.

  (Generic lambdas add a complication here, but even then, it seems that we
  must instantiate the body of the lambda eagerly in order to determine their
  set of captures.)

http://llvm-reviews.chandlerc.com/D1358



More information about the cfe-commits mailing list