https://github.com/hubert-reinterpretcast commented:

Another case (maybe a separate regression)?

```
typedef int import;
extern
import and x;
```

With the patch:
```
$ clang++ importAltToken.cc -std=c++26 -fsyntax-only
importAltToken.cc:3:1: error: expected unqualified-id
    3 | import and x;
      | ^
1 error generated.
Return:  0x01:1   Thu Sep 18 00:03:37 2025 EDT
```

Without the patch:
```
$ clang++-22 importAltToken.cc -std=c++26 -fsyntax-only
Return:  0x00:0   Thu Sep 18 00:03:51 2025 EDT
```

https://github.com/llvm/llvm-project/pull/107168
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to