Re: bug in gcc/cp/coroutines.cc line 4688

2025-01-19 Thread Jonathan Wakely via Gcc
On Sat, 18 Jan 2025, 23:27 Lee Brown via Gcc, wrote: > In my view it is a bug. It gives an error that it can't find > std::throw, but that is gcc's problem, not the problem according to > the standard. According to the standard, the problem is that ::operator > new(size_t, nothrow_t) has no

Re: bug in gcc/cp/coroutines.cc line 4688

2025-01-18 Thread Lee Brown via Gcc
In my view  it is a bug.  It gives an error that it can't find std::throw,  but that is gcc's problem,  not the problem according to the standard.  According to the standard, the problem is that ::operator new(size_t, nothrow_t)  has not been declared.   In fact,  the relevant paragraph of the sta

Re: bug in gcc/cp/coroutines.cc line 4688

2025-01-18 Thread Andrew Pinski via Gcc
On Sat, Jan 18, 2025 at 2:12 PM Lee Brown via Gcc wrote: > > Just to be clear, the appended 17 lines of very simple code breaks gcc > on every platform where header does not have in its > include hierarchywhich I assume to be every platform. See the discussion in the bug report: https://g

Re: bug in gcc/cp/coroutines.cc line 4688

2025-01-18 Thread Lee Brown via Gcc
Just to be clear,   the appended 17 lines of very simple code breaks gcc on every platform where header does not have in its include hierarchywhich I assume to be every platform. 1) place code below in main.cpp 2) g++ -std=c++20 main.cpp and you get main.cxx: In function 'my_co do_co()':