PR libstdc++/82917 add missing returns in <fstream>
authorJonathan Wakely <jwakely@redhat.com>
Fri, 10 Nov 2017 21:43:24 +0000 (21:43 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 10 Nov 2017 21:43:24 +0000 (21:43 +0000)
PR libstdc++/82917
* include/std/fstream (basic_ifstream::open, basic_ofstream::open)
(basic_fstream::open): Fix missing return.

From-SVN: r254638

libstdc++-v3/ChangeLog
libstdc++-v3/include/std/fstream

index 0c5786b1f961d226188352b5d57bbbfb45759b90..7f3c5302de7ac352ddddcb0e16d3d28632f121eb 100644 (file)
@@ -1,3 +1,9 @@
+2017-11-10  Jonathan Wakely  <jwakely@redhat.com>
+
+       PR libstdc++/82917
+       * include/std/fstream (basic_ifstream::open, basic_ofstream::open)
+       (basic_fstream::open): Fix missing return.
+
 2017-11-07  Jonathan Wakely  <jwakely@redhat.com>
 
        * src/filesystem/ops-common.h (make_file_type) [S_ISSOCK]: Only use
index a3324c004d72f98546f231f90036a3137e694fcb..26176afccd0192eb4a8075e7092fa473efb48eca 100644 (file)
@@ -663,7 +663,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
       template<typename _Path>
        auto
        open(const _Path& __s, ios_base::openmode __mode = ios_base::in)
-       -> decltype(_M_filebuf.open(__s, __mode))
+       -> decltype((void)_M_filebuf.open(__s, __mode))
        { open(__s.c_str(), __mode); }
 #endif // C++17
 #endif // C++11
@@ -891,7 +891,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
       template<typename _Path>
        auto
        open(const _Path& __s, ios_base::openmode __mode = ios_base::out)
-       -> decltype(_M_filebuf.open(__s, __mode))
+       -> decltype((void)_M_filebuf.open(__s, __mode))
        { open(__s.c_str(), __mode); }
 #endif // C++17
 #endif // C++11
@@ -1118,7 +1118,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
        auto
        open(const _Path& __s,
             ios_base::openmode __mode = ios_base::in | ios_base::out)
-       -> decltype(_M_filebuf.open(__s, __mode))
+       -> decltype((void)_M_filebuf.open(__s, __mode))
        { open(__s.c_str(), __mode); }
 #endif // C++17
 #endif // C++11