diff --git a/gcc/sdbout.c b/gcc/sdbout.c index 4fa568dce10..4c3b24dabc2 100644 --- a/gcc/sdbout.c +++ b/gcc/sdbout.c @@ -715,6 +715,11 @@ sdbout_symbol (decl, local) && DECL_INITIAL (decl)) return; + /* C++ in 2.3 makes nameless symbols. That will be fixed later. + For now, avoid crashing. */ + if (DECL_NAME (decl) == NULL_TREE) + return; + /* Record the name for, starting a symtab entry. */ name = IDENTIFIER_POINTER (DECL_NAME (decl));