------- Comment #6 from pluto at agmk dot net  2007-05-29 08:50 -------
(In reply to comment #5)
> Which shows for sure r may be used unitialized.   

yes, but even if i catch possible i/o failure, gcc still produces warning.

--- auHexCastTest.ii.orig
+++ auHexCastTest.ii
@@ -18958,7 +18958,12 @@

   R r;
   stlp_std::istringstream str ( s );
-  str >> stlp_std::hex >> r;
+  str.exceptions ( stlp_std::istringstream::eofbit ||
stlp_std::istringstream::badbit || stlp_std::istringstream::failbit );
+  try {
+    str >> stlp_std::hex >> r;
+  } catch ( stlp_std::istringstream::failure ) {
+    throw;
+  }
   return r;
  }

so, is it still an invalid testcase?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32132

Reply via email to