Re: [RFC C++ PATCH] __builtin_source_location ()

2019-11-15 Thread Jonathan Wakely
On 14/11/19 23:39 +0100, Jakub Jelinek wrote: On Thu, Nov 14, 2019 at 10:15:21PM +, Jonathan Wakely wrote: > namespace std { > struct source_location { >struct __impl { Will this work if the library type is actually in an inline namespace, such as std::__8::source_location::__impl (as

Re: [RFC C++ PATCH] __builtin_source_location ()

2019-11-14 Thread Jakub Jelinek
On Thu, Nov 14, 2019 at 10:15:21PM +, Jonathan Wakely wrote: > > namespace std { > > struct source_location { > >struct __impl { > > Will this work if the library type is actually in an inline namespace, > such as std::__8::source_location::__impl (as for > --enable-symvers=gnu-versioned-

Re: [RFC C++ PATCH] __builtin_source_location ()

2019-11-14 Thread Jonathan Wakely
On 14/11/19 20:34 +0100, Jakub Jelinek wrote: Hi! The following WIP patch implements __builtin_source_location (), which returns const void pointer to a std::source_location::__impl struct that is required to contain __file, __function, __line and __column fields, the first two with const char *

[RFC C++ PATCH] __builtin_source_location ()

2019-11-14 Thread Jakub Jelinek
Hi! The following WIP patch implements __builtin_source_location (), which returns const void pointer to a std::source_location::__impl struct that is required to contain __file, __function, __line and __column fields, the first two with const char * type, the latter some integral type. I don't h