[Bug libstdc++/107335] call to throw_bad_cast even with -fno-exceptions

2022-10-20 Thread hiraditya at msn dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107335 AK changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug libstdc++/107335] call to throw_bad_cast even with -fno-exceptions

2022-10-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107335 --- Comment #6 from Andrew Pinski --- (In reply to AK from comment #5) > Is this the definition of throw_bad_cast? > > https://github.com/gcc-mirror/gcc/blob/ > 16e2427f50c208dfe07d07f18009969502c25dc8/gcc/cp/rtti.c#L221 No. The definition is

[Bug libstdc++/107335] call to throw_bad_cast even with -fno-exceptions

2022-10-20 Thread hiraditya at msn dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107335 --- Comment #5 from AK --- Is this the definition of throw_bad_cast? https://github.com/gcc-mirror/gcc/blob/16e2427f50c208dfe07d07f18009969502c25dc8/gcc/cp/rtti.c#L221

[Bug libstdc++/107335] call to throw_bad_cast even with -fno-exceptions

2022-10-20 Thread hiraditya at msn dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107335 --- Comment #4 from AK --- I wasn't sure if this is expected. Thanks for clarifying.

[Bug libstdc++/107335] call to throw_bad_cast even with -fno-exceptions

2022-10-20 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107335 --- Comment #3 from Jonathan Wakely --- So what exactly is the bug? You want the abort to happen right there? There are dozens of place we call functions like that instead of throwing.

[Bug libstdc++/107335] call to throw_bad_cast even with -fno-exceptions

2022-10-20 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107335 --- Comment #2 from Jonathan Wakely --- But that's not a throw, it's a function call. If the definition of that function is compiled without exceptions then it will abort instead of throw.

[Bug libstdc++/107335] call to throw_bad_cast even with -fno-exceptions

2022-10-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107335 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2022-10-20 Status|UNCONFIRM