On Wed, Feb 15, 2017 at 7:42 PM, Richard Smith via cfe-commits
wrote:
> https://bugs.llvm.org/show_bug.cgi?id=31977 makes the good point that this
> is warning on a certain idiomatic use of capture-by-value to extend the
> lifetime of an RAII object; consider:
>
> shared_ptr p = /*...*/;
> int
https://bugs.llvm.org/show_bug.cgi?id=31977 makes the good point that this
is warning on a certain idiomatic use of capture-by-value to extend the
lifetime of an RAII object; consider:
shared_ptr p = /*...*/;
int *q = &p->n;
return [=, p] { return *q++; }
Here, we'll warn that the capture o
On Mon, Jan 23, 2017 at 5:55 PM, Nico Weber wrote:
> On Mon, Jan 23, 2017 at 5:29 PM, Aaron Ballman
> wrote:
>>
>> On Mon, Jan 23, 2017 at 5:00 PM, Nico Weber via cfe-commits
>> wrote:
>> > On Sun, Jan 22, 2017 at 6:17 AM, Malcolm Parsons
>> >
>> > wrote:
>> >>
>> >> On 20 January 2017 at 21:32
On Mon, Jan 23, 2017 at 5:29 PM, Aaron Ballman
wrote:
> On Mon, Jan 23, 2017 at 5:00 PM, Nico Weber via cfe-commits
> wrote:
> > On Sun, Jan 22, 2017 at 6:17 AM, Malcolm Parsons <
> malcolm.pars...@gmail.com>
> > wrote:
> >>
> >> On 20 January 2017 at 21:32, Nico Weber wrote:
> >> > This warns
On Mon, Jan 23, 2017 at 5:00 PM, Nico Weber via cfe-commits
wrote:
> On Sun, Jan 22, 2017 at 6:17 AM, Malcolm Parsons
> wrote:
>>
>> On 20 January 2017 at 21:32, Nico Weber wrote:
>> > This warns about code like
>> >
>> > constexpr int foo = 4;
>> > [&foo]() { use(foo); }
>> >
>> > That's co
On Sun, Jan 22, 2017 at 6:17 AM, Malcolm Parsons
wrote:
> On 20 January 2017 at 21:32, Nico Weber wrote:
> > This warns about code like
> >
> > constexpr int foo = 4;
> > [&foo]() { use(foo); }
> >
> > That's correct, but removing &foo then makes MSVC complain about this
> code
> > like "err
On 20 January 2017 at 21:32, Nico Weber wrote:
> This warns about code like
>
> constexpr int foo = 4;
> [&foo]() { use(foo); }
>
> That's correct, but removing &foo then makes MSVC complain about this code
> like "error C3493: 'foo' cannot be implicitly captured because no default
> capture m
This warns about code like
constexpr int foo = 4;
[&foo]() { use(foo); }
That's correct, but removing &foo then makes MSVC complain about this code
like "error C3493: 'foo' cannot be implicitly captured because no default
capture mode has been specified". A workaround is to make foo static co
Sorry, for the noise.
This is probably not the revision that caused this.
On Mon, Jan 16, 2017 at 1:08 AM, Daniel Jasper wrote:
> This patch seems to break on some of our code. Reproducer:
>
> $ cat /tmp/ctor.cc
> template
> struct A {
> A() {}
> };
>
> template
> class B : T {
> using T::
This patch seems to break on some of our code. Reproducer:
$ cat /tmp/ctor.cc
template
struct A {
A() {}
};
template
class B : T {
using T::T;
};
struct C {
B> d;
C(A b) : d(b) {}
};
djasper@dj:~/llvm/release$ bin/clang -cc1 -std=c++11 /tmp/ctor.cc
/tmp/ctor.cc:13:17: error: no matchi
10 matches
Mail list logo