[PATCH] D129488: [Sema] Delay evaluation of std::source_location::current() in default arguments

James Y Knight via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 30 07:40:18 PDT 2022


jyknight added a comment.

I'm confused about this new strategy of special-casing `source_location::current()`. Isn't it wrong to eagerly evaluate _other_ calls in default args, as well? ISTM that source_location is simply _exposing_ the bug in where we evaluate these expressions, but that it's actually a more general problem?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D129488/new/

https://reviews.llvm.org/D129488



More information about the cfe-commits mailing list