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: "hjl dot tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jul 2008 22:13:33 -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 #8 from hjl dot tools at gmail dot com 2008-07-26 22:13 -------
(In reply to comment #7)
> 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
>
Like this one:
http://gcc.gnu.org/ml/gcc-patches/2008-07/msg02108.html
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.4.0 |---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36944