(finish_decl): Don't preserve initializer if it is error_mark_node.
From-SVN: r7033
This commit is contained in:
parent
9772d94feb
commit
db57d41371
|
@ -3597,7 +3597,7 @@ finish_decl (decl, init, asmspec_tree)
|
||||||
/* We make an exception for inline functions, since it's
|
/* We make an exception for inline functions, since it's
|
||||||
normal for a local extern redeclaration of an inline function
|
normal for a local extern redeclaration of an inline function
|
||||||
to have a copy of the top-level decl's DECL_INLINE. */
|
to have a copy of the top-level decl's DECL_INLINE. */
|
||||||
if (DECL_INITIAL (decl) != 0)
|
if (DECL_INITIAL (decl) != 0 && DECL_INITIAL (decl) != error_mark_node)
|
||||||
{
|
{
|
||||||
/* If this is a const variable, then preserve the
|
/* If this is a const variable, then preserve the
|
||||||
initializer instead of discarding it so that we can optimize
|
initializer instead of discarding it so that we can optimize
|
||||||
|
|
Loading…
Reference in New Issue