This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tree-ssa] Merge results as of 2003-05-06


On Wed, May 07, 2003 at 09:41:13AM -0400, Jason Merrill wrote:
> On Wed, 7 May 2003 08:58:09 -0400, Diego Novillo <dnovillo@redhat.com> wrote:
> 
> > On Wed, May 07, 2003 at 12:01:39AM -0400, Jason Merrill wrote:
> >
> >> I'd probably just add
> >> 
> >>          if (declarator == error_mark_node)
> >>            break;
> >> 
> >> before that test.
> >> 
> > OK.  Done.
> >
>
Grr, I put the test in the wrong spot.


Diego.

	* decl.c (grokdeclarator): Fix thinko in handling
	ERROR_MARK declarators.

Index: decl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/decl.c,v
retrieving revision 1.911.2.30
retrieving revision 1.911.2.31
diff -d -u -p -r1.911.2.30 -r1.911.2.31
--- decl.c      7 May 2003 13:32:32 -0000       1.911.2.30
+++ decl.c      7 May 2003 15:04:26 -0000       1.911.2.31
@@ -10542,11 +10542,11 @@ grokdeclarator (tree declarator,
         array or function or pointer, and DECLARATOR has had its
         outermost layer removed.  */

-      if (declarator == error_mark_node)
-       break;
-
       if (type == error_mark_node)
        {
+         if (declarator == error_mark_node)
+           break;
+
          if (TREE_CODE (declarator) == SCOPE_REF)
            declarator = TREE_OPERAND (declarator, 1);
          else


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]