[PATCH] D20428: Tracking exception specification source locations

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 24 05:44:10 PDT 2016


On Fri, Jun 24, 2016 at 8:39 AM, Richard Smith <richard at metafoo.co.uk> wrote:
> rsmith added a comment.
>
> Ah right, we were (intentionally, but unfortunately) making an assumption that the `TypeLoc` data layout doesn't change when the exception spec of a function is updated. You'd need to make yourself a `TypeLocBuilder`, copy the relevant data, and update the exception spec loc.
>
> Where are we adjusting the exception specification on the type source info? That (changing the type-info-as-written) seems like a somewhat unusual thing to do implicitly.

ActOnFunctionDeclarator when dealing with concepts ([dcl.spec.concept]p1)
delayed exception specs
Any time we explicitly call UpdateExceptionSpec() (template
instantiation and a few other places).

~Aaron


More information about the cfe-commits mailing list