This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix latent bug in c++ frontend
> > this patch probably fixes a bug in C++ frontend which caused segfault.
> > It appeared when compiling gtkmm, I have destiled attached testcase from it.
> >
> > I am not familiar with C++ frontend code so the patch may be wrong,
> > can someone who understand C++ frontend check it?
> >
> >
> > template <class T>
> > inline T* manage(T* t)
> > {
> > return t;
> > }
> >
> > template <class R>
> > struct ObjectSlot0_
> > {
> > static void create()
> > {
> > manage(new int);
> > }
> > };
The problem seems to be already fixed on todays mainline.
Josef