[Bug libgcc/103654] cannot correctly catch C++ exceptions

unlvsur at live dot com gcc-bugzilla@gcc.gnu.org
Fri Dec 10 17:33:07 GMT 2021


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

cqwrteur <unlvsur at live dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |unlvsur at live dot com

--- Comment #1 from cqwrteur <unlvsur at live dot com> ---
#include<fast_io.h>
#include<fast_io_device.h>

int main()
try
{
        fast_io::ibuf_file ibf("not_exist.txt");
}
catch(fast_io::error e)
{
        return 1;
}
catch(...)
{
        return 1;
}


what's wrong here??


More information about the Gcc-bugs mailing list