[PATCH] D146148: Float_t and double_t types shouldn't be modified by #pragma clang fp eval_method
    John McCall via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Wed Mar 22 09:24:43 PDT 2023
    
    
  
rjmccall added a comment.
The user isn't modifying the `float_t` type definition, they're using it.  I think the diagnostic should say something like `cannot use type 'float_t' within '#pragma clang fp eval_method'; type is set according to the default eval method for the translation unit`.
Is there any way we can infer an attribute for these typedefs when they're declared, then diagnose it in `DiagnoseUseOfDecl`?  Some sort of "available_only_in_default_eval_method" attribute?
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D146148/new/
https://reviews.llvm.org/D146148
    
    
More information about the cfe-commits
mailing list