PATCH: PR middle-end/33199: [4.3 Regression] tr1/2_general_utilities/shared_ptr/assign/auto_ptr.cc
Richard Guenther
rguenther@suse.de
Tue Aug 28 08:17:00 GMT 2007
On Mon, 27 Aug 2007, Paolo Carlini wrote:
> H.J. Lu wrote:
>
> >The problem is C++ can't inline a function with a variable-length
> >argument list. Before revision 127763, we ignore inline on C++
> >functions with a variable-length argument list. But now, we
> >inline C++ functions with a variable-length argument list,
> >which generates incorrect codes. I don't know what the appropriate
> >fix is. If inline isn't allowed here, compiler should issue an
> >error instead of generating wrong code unless we can ignore inline
> >like what we did before revision 127763.
> >
> >
> Yes, certainly we want a real compiler fix.
I'm looking into this particular case. Note that with the C
frontend we can happily inline such an (empty!) varargs function
and this "feature" is actually depended upon by the linux kernel.
Richard.
More information about the Libstdc++
mailing list