This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/66145] [5/6/7 Regression] std::ios_base::failure objects thrown from libstdc++.so use old ABI


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66145

--- Comment #17 from Boris Kolpackov <boris at kolpackov dot net> ---
> if (is >> x >> y >> z)

And what should happen in the else part of such statements?

if (is >> x >> y >> z)
  ...
else
  throw something();

Also note that if the 'is >> x' call in the above chain fails, you will still
execute 'is >> y' and 'is >> z' before noticing the failure.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]