Re: [PATCH v2] c: Implement C23 nullptr (N3042)

2022-08-25 Thread Joseph Myers
On Wed, 24 Aug 2022, Marek Polacek via Gcc-patches wrote: > Ah, okay. I had just copied what we do in C++ in null_ptr_cst_p and the > rest of the patch worked under that assumption. I've added some tests > for this too. Except I don't really understand the _Generic comment so > I only have test

[PATCH v2] c: Implement C23 nullptr (N3042)

2022-08-24 Thread Marek Polacek via Gcc-patches
On Mon, Aug 15, 2022 at 05:48:34PM +, Joseph Myers wrote: > On Sat, 13 Aug 2022, Marek Polacek via Gcc-patches wrote: > > > This patch also defines nullptr_t in . I'm uncertain about > > the __STDC_VERSION__ version I should be checking. Also, I'm not > > We're using defined (__STDC_VERSION