This is the mail archive of the gcc-bugs@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]

[Bug c++/36944] [4.4 Regression]: Revision 138123 breaks constructors with default arguments



------- 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


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