llvm-project
7febd78f - No longer diagnose __auto_type as the auto extension (#134129)

Commit
218 days ago
No longer diagnose __auto_type as the auto extension (#134129) Given: __auto_type x = 12; decltype(auto) y = 12; -Wc++98-compat would diagnose both x and y with: 'auto' type specifier is incompatible with C++98 This patch silences the diagnostic in those cases. decltype(auto) is still diagnosed with: 'decltype(auto)' type specifier is incompatible with C++ standards before C++14 as expected but no longer produces the extraneous diagnostic about use of 'auto'. Fixes #47900
Author
Parents
Loading