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

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


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