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

2025-01-18 Thread Lee Brown via Gcc
aph of the standard never mentions std::nothrow .  It only mentions std::nothrow_t.  Not the same thing. In other words,  this is an error message for developers,  not for users...i.e. a bug. On 1/18/2025 3:18 PM, Andrew Pinski wrote: On Sat, Jan 18, 2025 at 2:12 PM Lee Brown via Gcc wrote:

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()':