Commit 099f36ab by James A. Morrison

re PR debug/22514 (ICE in force_decl_die with invalid code after error)

2005-08-05  James A. Morrison  <phython@gcc.gnu.org>

        PR c++/22514
        * name-lookup.c (cp_emit_debug_info_for_using): Do nothing if
        sorrycount or errorcount are nonzero.

From-SVN: r102799
parent a6a09784
2005-08-05 James A. Morrison <phython@gcc.gnu.org>
PR c++/22514
* name-lookup.c (cp_emit_debug_info_for_using): Do nothing if
sorrycount or errorcount are nonzero.
2005-08-05 Mark Mitchell <mark@codesourcery.com> 2005-08-05 Mark Mitchell <mark@codesourcery.com>
* name-lookup.c (pushtag): Remove accidental commit from: * name-lookup.c (pushtag): Remove accidental commit from:
......
...@@ -4949,6 +4949,10 @@ pop_everything (void) ...@@ -4949,6 +4949,10 @@ pop_everything (void)
void void
cp_emit_debug_info_for_using (tree t, tree context) cp_emit_debug_info_for_using (tree t, tree context)
{ {
/* Don't try to emit any debug information if we have errors. */
if (sorrycount || errorcount)
return;
/* Ignore this FUNCTION_DECL if it refers to a builtin declaration /* Ignore this FUNCTION_DECL if it refers to a builtin declaration
of a builtin function. */ of a builtin function. */
if (TREE_CODE (t) == FUNCTION_DECL if (TREE_CODE (t) == FUNCTION_DECL
......
2005-08-05 James A. Morrison <phython@gcc.gnu.org>
* g++.dg/parse/pr22514.C: New test.
2005-08-05 J"orn Rennecke <joern.rennecke@st.com> 2005-08-05 J"orn Rennecke <joern.rennecke@st.com>
* gcc.dg/intmax_t-1.c: Extend dg-error to cover sh*-*-elf targets. * gcc.dg/intmax_t-1.c: Extend dg-error to cover sh*-*-elf targets.
......
/* { dg-do compile } */
namespace s
{
template <int> struct _List_base
{
int _M_impl;
};
template<int i> struct list : _List_base<i>
{
using _List_base<i>::_M_impl;
}
} /* { dg-error "expected unqualified-id before '\}'" } */
s::list<1> OutputModuleListType; /* { dg-error "expected" } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment