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

--- Comment #2 from Jason Liam <jlame646 at gmail dot com> ---
(In reply to Jakub Jelinek from comment #1)
> This is rejected with -std=c++20 since
> r11-532-g4b38d56dbac6742b038551a36ec80200313123a1
> and the commit log states that it is intentional to apply it only for C++20
> mode because the DR wasn't against C++17.
> So why do you think otherwise?
> https://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#2237
> also states:
> (Note that this resolution is a change for C++20, NOT a defect report
> against C++17 and earlier versions.)

First, you've clearly missed something here because this is not
https://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#2237 . Note
carefully that the above link that you provided was for declarations of ctors
and dtors inside the class definition itself and not for declarations at
namespace scope. 


Second, i'm already aware that this is rejected by gcc with c++20 as i provided
a demo link https://godbolt.org/z/TYjEzss6q at the first line of my bug report.

Reply via email to