Tested x86_64-linux. Pushed to trunk.
-- >8 --
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.
---
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 2c4cc260f90..6651686cd1d 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>
--
2.46.0