[Bug c++/26036] [4.0/4.1/4.2 Regression] Treating a class object as a function with member variables causes hang

reichelt at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Apr 19 09:34:00 GMT 2006



------- Comment #6 from reichelt at gcc dot gnu dot org  2006-04-19 09:34 -------
Mark,
are you really working on this one or did you only accidentally assign the PR
to
you? The following fixes the problem for me and allows to get rid of
error_mark_list as it is then unused:

===================================================================
--- gcc/gcc/cp/typeck.c 2006-04-18 17:32:06 +0200
+++ gcc/gcc/cp/typeck.c 2006-04-18 17:32:31 +0200
@@ -2788,7 +2788,7 @@ convert_arguments (tree typelist, tree v
            }
          else
            error ("too few arguments to function");
-         return error_mark_list;
+         return error_mark_node;
        }
     }

===================================================================


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26036



More information about the Gcc-bugs mailing list