Fwd: [PATCH][RFC] c++: Accept elaborated-enum-base in system headers

2023-06-08 Thread Iain Sandoe
> Begin forwarded message: > > From: Jason Merrill > Subject: Re: [PATCH][RFC] c++: Accept elaborated-enum-base in system headers > Date: 8 June 2023 at 19:06:36 BST > To: Alex Coplan , gcc-patches@gcc.gnu.org > Cc: Nathan Sidwell , Iain Sandoe > > On 6/8/23 07:0

Re: [PATCH][RFC] c++: Accept elaborated-enum-base in system headers

2023-06-08 Thread Jason Merrill via Gcc-patches
On 6/8/23 07:06, Alex Coplan wrote: Hi, macOS SDK headers using the CF_ENUM macro can expand to invalid C++ code of the form: typedef enum T : BaseType T; i.e. an elaborated-type-specifier with an additional enum-base. Upstream LLVM can be made to accept the above construct with -Wno-error=ela

[PATCH][RFC] c++: Accept elaborated-enum-base in system headers

2023-06-08 Thread Alex Coplan via Gcc-patches
Hi, macOS SDK headers using the CF_ENUM macro can expand to invalid C++ code of the form: typedef enum T : BaseType T; i.e. an elaborated-type-specifier with an additional enum-base. Upstream LLVM can be made to accept the above construct with -Wno-error=elaborated-enum-base. This macro expansi