================
@@ -2315,6 +2315,8 @@ bool UnwrappedLineParser::tryToParseLambdaIntroducer() {
     if (Next->is(tok::greater))
       return false;
   }
+  if (tok::isLiteral(FormatTok->Tok.getKind()))
+    return false;
----------------
XDeme wrote:

With this change, a code like this will crash:
```cpp
Foo foo[] = {
    [0] = {1, 1},
    ['a']{1, 1},
    ['a']{1, 1},
};
```

https://github.com/llvm/llvm-project/pull/77045
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to