Landing: b624ebefa3a6
Project / Subsystem
gcc / libstdc++
Date
2026-09-17
Author
Jonathan Wakely
Commit
b624ebefa3a6a591924c0d680772ba89c5cd08d2
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- libstdc++
- patch_id
- —
- commit_hash
- b624ebefa3a6a591924c0d680772ba89c5cd08d2
- source_type
- github
- headline
- libstdc++: Use deleted functions in C++98 mode
- tldr
- Enables use of deleted functions in C++98 mode for better diagnostics and robustness.
- author
- Jonathan Wakely
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • libstdc++
- • C++98
- • compiler warnings
- • diagnostics
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-17T00:00:00.000Z
This change allows the use of deleted functions in C++98 mode within libstdc++, by suppressing C++11 extension warnings with pragmas. Previously, some types were not made copyable at all, relying on C++11 and later testing. Now, deleted copy constructors and assignment operators provide better diagnostics and robustness, preventing accidental use of these functions in C++98 code. Several areas in the STL, including vector