[v3] c++0x <system_error> CD updates
Chris Fairles
chris.fairles@gmail.com
Wed Oct 15 15:23:00 GMT 2008
Just to follow up on the seg fault. It happens because default
constructed error_code's, &system_category returns 0. So any
e.category().name() will seg fault since &e.category() == 0. Kind of
at a loss as to why. In a contained test case I can't reproduce it
(attached the appropriate files).
I have a feeling I'm missing something obvious here...
Chris
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sys.hpp
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20081015/345de98b/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sys.cpp
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20081015/345de98b/attachment-0001.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: system3.cpp
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20081015/345de98b/attachment-0002.ksh>
More information about the Libstdc++
mailing list