Hi,

On 07/07/2018 23:20, Ville Voutilainen wrote:
+           error_at (DECL_SOURCE_LOCATION (old),
+                     "capture %qD and lambda parameter %qD "
+                     "have the same name",
+                     decl, old);
Let's consider, say (with -Wshadow):

int main() {
  int x = 42;
  auto lambda0 = [x]() { int x; };
}

I'm thinking that the new diagnostic should be more consistent with it.

Paolo.

Reply via email to