https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107335
AK changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
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
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
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.
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.
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.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107335
Andrew Pinski changed:
What|Removed |Added
Last reconfirmed||2022-10-20
Status|UNCONFIRM