This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/36944] [4.4 Regression]: Revision 138123 breaks constructors with default arguments
- From: "jason at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jul 2008 21:41:27 -0000
- Subject: [Bug c++/36944] [4.4 Regression]: Revision 138123 breaks constructors with default arguments
- References: <bug-36944-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from jason at redhat dot com 2008-07-26 21:41 -------
Subject: Re: [4.4 Regression]: Revision 138123 breaks C++
hjl dot tools at gmail dot com wrote:
> + if (skip_artificial_parms_for (fn, DECL_ARGUMENTS (fn))
> + == NULL_TREE)
> + return true;
> + args = FUNCTION_FIRST_USER_PARMTYPE (fn);
> + while (args && TREE_PURPOSE (args))
> + args = TREE_CHAIN (args);
> + if (!args || args == void_list_node)
> + return true;
> Is this correct?
You don't need the first three lines quoted above; the new code you
added is enough.
Jason
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36944