ChuanqiXu9 wrote:

> Is delayed template parsing an optimisation or a correctness measure? If it's 
> an optimisation, then it seems that we should disable it for modules (because 
> that then makes the modules cases correct).  If it's needed for correctness, 
> then we have more of a problem - do we know how MSVC makes the two interact?

According to my readings, this is about the correctness for the extensions in 
**older** Windows SDK. The comment for `-fdelayed-template-parsing` is:

> // Many old Windows SDK versions require this to parse.
> // FIXME: MSVC introduced /Zc:twoPhase- to disable this behavior in their
> // compiler. We should be able to disable this by default at some point.

So while it is about the correctness for some legacy cases, it should be 
disabled by default at some point according to our plan. (Although I am not 
sure if any one is watching on this).

>  If it's needed for correctness, then we have more of a problem - do we know 
> how MSVC makes the two interact?

I think we can only achieve this by reaching out Cameron.


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

Reply via email to