[Regression] [pushed] c++: reduce redundant deprecated warnings

2025-01-12 Thread Torbjorn SVENSSON
Hi Jason, This change caused the 99957.cc test to regress on arm-none-eabi. FAIL: 20_util/pair/cons/99957.cc -std=gnu++17 (test for warnings, line 25) FAIL: 20_util/pair/cons/99957.cc -std=gnu++17 (test for warnings, line 26) FAIL: 20_util/pair/cons/99957.cc -std=gnu++17 (test for warnings

[pushed] c++: reduce redundant deprecated warnings

2024-11-19 Thread Jason Merrill
Tested x86_64-pc-linux-gnu, applying to trunk. -- 8< -- If a template uses a deprecated function, we should warn there and not also whenever the template is instantiated. I implement this by suppressing the warning at the location; then to make this also work with modules, I need to make sure to