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