https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114940

--- Comment #4 from Timothy Liu Xuefeng <liuxf19 at 163 dot com> ---
(In reply to Jonathan Wakely from comment #2)
> It's not optional, it's a required feature in C++14 and later. Failing to
> provide it is non-conforming, although GCC can be requested to be
> non-conforming the same way with -fno-sized-deallocation. Using that, the
> same error happens with GCC.
> 
> We should either disable __cpp_lib_generator when __cpp_sized_deallocation
> is not defined, or change <generator> to not depend on it unconditionally.

Yeah, I agree. Since -fsized-deallocation is not the default behavior of
clang++, reporting errors in <generator> seems strange.

Reply via email to