[PATCH] D139400: [clang] Show error when a local variables is passed as default template parameter

Shafik Yaghmour via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 6 07:36:24 PST 2022


shafik added a comment.

It looks like we have an existing message for the regular function case e.g.:

  void g() {
      int x;
      void f(int y = x);
  
      auto lambda1 = [] <auto y = x> {}; 
  }

see godbolt: https://godbolt.org/z/1vneM5b35


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D139400



More information about the cfe-commits mailing list