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

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
We have __dynamic_cast without DECL_CONTEXT and so ICE in

 9050       if (!DECL_CONTEXT (t))
 9051         {
 9052           /* There are a few cases of decls with no context.  We'll write
 9053              these by value, but first assert they are cases we expect. 
*/
 9054           gcc_checking_assert (ref == WK_normal);
 9055           switch (TREE_CODE (t))
 9056             {
 9057             default: gcc_unreachable ();

Reply via email to