C++ PATCH for c++/70353 (core issue 1962)

2016-03-25 Thread Jason Merrill
70353 is a problem with the function-local static declaration of __func__. Normally constexpr functions can't have local statics, so this is only an issue with __func__. Meanwhile, core issue 1962 looks like it's going to be resolved by changing __func__ et al to be prvalue constants of type

Re: C++ PATCH for c++/70353 (core issue 1962)

2016-03-26 Thread Dominique d'Humières
Hi Jason, The following tests for g++.dg/ext/fnname5.C fail on darwin FAIL: g++.dg/ext/fnname5.C -std=c++11 scan-assembler .string\\t"foo" FAIL: g++.dg/ext/fnname5.C -std=c++11 scan-assembler .string\\t"void A::foo(int)" FAIL: g++.dg/ext/fnname5.C -std=c++14 scan-assembler .string\

Re: C++ PATCH for c++/70353 (core issue 1962)

2016-03-26 Thread Markus Trippelsdorf
On 2016.03.25 at 17:29 -0400, Jason Merrill wrote: > 70353 is a problem with the function-local static declaration of __func__. > Normally constexpr functions can't have local statics, so this is only an > issue with __func__. Meanwhile, core issue 1962 looks like it's going to be > resolved by ch

Re: C++ PATCH for c++/70353 (core issue 1962)

2016-03-27 Thread Segher Boessenkool
On Fri, Mar 25, 2016 at 05:29:26PM -0400, Jason Merrill wrote: > 70353 is a problem with the function-local static declaration of > __func__. Normally constexpr functions can't have local statics, so > this is only an issue with __func__. Meanwhile, core issue 1962 looks > like it's going to b

Re: C++ PATCH for c++/70353 (core issue 1962)

2016-03-28 Thread Jason Merrill
OK, thanks. Jason

Re: C++ PATCH for c++/70353 (core issue 1962)

2016-03-28 Thread Dominique d'Humières
> Le 28 mars 2016 à 14:55, Jason Merrill a écrit : > > OK, thanks. > > Jason Does it mean that I should commit the patch? Dominique

Re: C++ PATCH for c++/70353 (core issue 1962)

2016-03-28 Thread Jason Merrill
On 03/28/2016 09:02 AM, Dominique d'Humières wrote: Le 28 mars 2016 à 14:55, Jason Merrill a écrit : OK, thanks. Jason Does it mean that I should commit the patch? Please. Jason

Re: C++ PATCH for c++/70353 (core issue 1962)

2016-03-28 Thread Dominique d'Humières
> Le 28 mars 2016 à 15:11, Jason Merrill a écrit : > > On 03/28/2016 09:02 AM, Dominique d'Humières wrote: >> >>> Le 28 mars 2016 à 14:55, Jason Merrill a écrit : >>> >>> OK, thanks. >>> >>> Jason >> >> Does it mean that I should commit the patch? > > Please. Revision 234504. Dominique