spavloff wrote:

Actually the pragma stack is not saved during template instantiation. It is 
saved during late template parsing using class `FpPragmaStackSaveRAII`. For 
template instantiation the dependency on the stack can be considered as an 
error, because all information about FP options should be taken from AST.

That was the reason for this issue - the pragma stack was cleared because 
`resetFPOptions` was introduced for late parsing. If instantiation was made 
during parsing, it spoiled the pragma stack.

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

Reply via email to