https://gcc.gnu.org/g:5d5193f0734fb4706940f7ac79899da25250be9d
commit r15-3051-g5d5193f0734fb4706940f7ac79899da25250be9d Author: Jonathan Wakely <jwak...@redhat.com> Date: Tue Aug 20 11:54:25 2024 +0100 libstdc++: Remove redundant reclaration of std::optional We've already declared optional at the top of the header, so don't need to do it again. libstdc++-v3/ChangeLog: * include/std/optional: Remove redundant redeclaration. Diff: --- libstdc++-v3/include/std/optional | 3 --- 1 file changed, 3 deletions(-) diff --git a/libstdc++-v3/include/std/optional b/libstdc++-v3/include/std/optional index 2c4cc260f90e..6651686cd1d0 100644 --- a/libstdc++-v3/include/std/optional +++ b/libstdc++-v3/include/std/optional @@ -741,9 +741,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION }; #endif // __cpp_concepts - template<typename _Tp> - class optional; - template<typename _Tp> inline constexpr bool __is_optional_v = false; template<typename _Tp>