Re: [patch] Fix two C++ errors in libstdc++. (issue4341041)

2011-03-31 Thread Paolo Carlini
Hi, > Thanks. Is that an OK that I can commit this to mainline and 4_6-branch? Sure, if you are ready to commit please go ahead, thanks. Note that the C++ front end issue is also important, the next time you encounter something similar please point it out explicitly! Thanks, Paolo

Re: [patch] Fix two C++ errors in libstdc++. (issue4341041)

2011-03-31 Thread Jason Merrill
On 03/31/2011 05:25 PM, Paolo Carlini wrote: Jason let me know if you want a Bugzilla Please. Jason

Re: [patch] Fix two C++ errors in libstdc++. (issue4341041)

2011-03-31 Thread Jeffrey Yasskin
On Thu, Mar 31, 2011 at 12:49 PM, Paolo Carlini wrote: > On 03/31/2011 09:41 PM, Paolo Carlini wrote: >>> >>> I think this is a candidate to backport to libstdc++-4.6.1. >>> >>> exception_ptr.h needs the forward declaration because it's >>> included from  before  defines std::type_info. >> >> befo

Re: [patch] Fix two C++ errors in libstdc++. (issue4341041)

2011-03-31 Thread Paolo Carlini
Hi, > > Compiler bug. Agreed. Thus, I'm going to apply the library patch, release branch too, seems safe, even if I don't think the compiler bug is likely to be fixed in the branch too... Jason let me know if you want a Bugzilla or the issue is basically known. Paolo

Re: [patch] Fix two C++ errors in libstdc++. (issue4341041)

2011-03-31 Thread Jason Merrill
On 03/31/2011 03:41 PM, Paolo Carlini wrote: I think we should understand why this is accepted, note no headers: namespace std { struct test { const type_info* fun(); }; } Jason? Compiler bug. Jason

Re: [patch] Fix two C++ errors in libstdc++. (issue4341041)

2011-03-31 Thread Paolo Carlini
On 03/31/2011 09:41 PM, Paolo Carlini wrote: I think this is a candidate to backport to libstdc++-4.6.1. exception_ptr.h needs the forward declaration because it's included from before defines std::type_info. before going ahead with the patch - I'm not at all sure it's enough, for itself for

Re: [patch] Fix two C++ errors in libstdc++. (issue4341041)

2011-03-31 Thread Paolo Carlini
Hi, I think this is a candidate to backport to libstdc++-4.6.1. exception_ptr.h needs the forward declaration because it's included from before defines std::type_info. before going ahead with the patch - I'm not at all sure it's enough, for itself for example - I think we should understand w