yronglin wrote:

> > This is ill-formed because we trait identifier `import` as kw_import. 
> > @Bigcheese
> > ```c++
> > typedef int import;
> > extern
> > import and x;
> > ```
> 
> Hmm, because `and` is not a "header-name, `<`, identifier, string-literal, or 
> `:` preprocessing token" this should not be treated as a kw_import. I assume 
> it's being treated as an identifier even though it's an alternative token.

Oh, thanks, let me fix it.

typedef int import;
#define EMP
EMP import m;

> There is a related problem that preprocessing the file first would 
> (naturally) generate different behaviour for such a case.

There is still this problem that needs to be solved.


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