Re: [cfe-users] Code which compiles with g++ but not with clang++

2020-11-09 Thread Pavel Černohorský via cfe-users
On 09. 11. 20 9:28, Richard Smith wrote: Right, this was made valid by P0641R2, which was voted into C++20 but was not moved as a defect report resolution against prior standards. So I think g++ is being more permissive than the standard requires (though as far as I can see, it would be a con

Re: [cfe-users] Code which compiles with g++ but not with clang++

2020-11-09 Thread Richard Smith via cfe-users
On Thu, 5 Nov 2020 at 09:29, Marshall Clow via cfe-users < cfe-users@lists.llvm.org> wrote: > On Nov 5, 2020, at 6:34 AM, Pavel Černohorský via cfe-users < > cfe-users@lists.llvm.org> wrote: > > > > Hello, > > > > I would like to ask what is wrong with the following code: > > ``` > > > > #include