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

2020-11-05 Thread Marshall Clow via cfe-users
> On Nov 5, 2020, at 6:34 AM, Pavel Černohorský via cfe-users > wrote: > > Hello, > > I would like to ask what is wrong with the following code: > ``` > > #include > > struct S > { > S& operator=(S&) { return *this; }; > }; > > void thisWillNotCompileInClang() > { > std::optional a; > }

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

2020-11-05 Thread Marshall Clow via cfe-users
On Nov 5, 2020, at 6:34 AM, Pavel Černohorský via cfe-users wrote: > > Hello, > > I would like to ask what is wrong with the following code: > ``` > > #include > > struct S > { >S& operator=(S&) { return *this; }; > }; > > void thisWillNotCompileInClang() > { > std::optional a; > } >

Re: [cfe-users] -Wconversion does not produce warnings when it should

2020-11-16 Thread Marshall Clow via cfe-users
> On Nov 16, 2020, at 6:42 PM, David Blaikie via cfe-users > wrote: > > On Mon, Nov 16, 2020 at 4:49 PM Sven Köhler via cfe-users > mailto:cfe-users@lists.llvm.org>> wrote: >> >> Am 16.11.20 um 21:49 schrieb David Blaikie via cfe-users: >>> On Mon, Nov 16, 2020 at 12:36 PM Sven Köhler via cfe