Serosh-commits wrote:

@mizvekov using SS.clear() and Previous.clear() stops the crash but it breaks 
some existing tests i think the reason is that it runs for all using SS.clear() 
and Previous.clear() stops the crash but it breaks some existing tests i think 
the reason is that it runs for all qualified friend definitions, including 
cases like friend void C::f() inside a class, which should produce a different 
diagnostic so i am kinda  thinking maybe the recovery should run only when the 
qualifier refers to namespace/global scope, which we can check using 
computeDeclContext(SS) will that would be a good approach ?

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

Reply via email to