[Bug c++/67050] [C++14] ICE when calling a template member function from a lambda with implicit "this" capture

2015-12-16 Thread bernds at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67050

Bernd Schmidt  changed:

   What|Removed |Added

 CC||bernds at gcc dot gnu.org

--- Comment #4 from Bernd Schmidt  ---
I can't reproduce this with current trunk, I just get these errors:

tst.cc: In instantiation of ‘Foo::test():: [with auto:1 =
int]’:
tst.cc:6:35:   required by substitution of ‘template
Foo::test()::::operator decltype
(((Foo::test()::)0u).operator()(arg)) (*)(auto:1)() const [with
auto:1 = int]’
tst.cc:10:17:   required from here
tst.cc:8:29: error: cannot call member function ‘void Foo::X() [with
 = int]’ without object
 X();
 ^~

tst.cc: In instantiation of ‘Foo::test():: [with auto:2 =
int]’:
tst.cc:12:35:   required by substitution of ‘template
Foo::test()::::operator decltype
(((Foo::test()::)0u).operator()(arg)) (*)(auto:2)() const [with
auto:2 = int]’
tst.cc:15:17:   required from here
tst.cc:13:29: error: cannot call member function ‘void Foo::X() [with
 = int]’ without object
 X();
 ^~

Can anyone else, or should we close it?

[Bug c++/67050] [C++14] ICE when calling a template member function from a lambda with implicit "this" capture

2015-12-16 Thread ldionne.2 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67050

--- Comment #5 from Louis Dionne  ---
Agreed, the ICE seems to be fixed on trunk. However, the error you're getting
is still a bug, right? The code compiles if I use `this->X()`,
but not `X()` alone.

[Bug c++/67050] [C++14] ICE when calling a template member function from a lambda with implicit "this" capture

2015-12-16 Thread ldionne.2 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67050

--- Comment #7 from Louis Dionne  ---
Yes, it seems like a dup. However, it would still be nice to know when this bug
was fixed, because it seems unlikely to have been fixed by chance... It could
be that something's still wrong, but the compiler simply doesn't ICE anymore.

At any rate, this can be closed as a duplicate of PR61636.

[Bug c++/67050] [C++14] ICE when calling a template member function from a lambda with implicit "this" capture

2015-12-16 Thread bernds at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67050

Bernd Schmidt  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #8 from Bernd Schmidt  ---
Done.

*** This bug has been marked as a duplicate of bug 61636 ***

[Bug c++/67050] [C++14] ICE when calling a template member function from a lambda with implicit "this" capture

2015-12-16 Thread bernds at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67050

--- Comment #6 from Bernd Schmidt  ---
Not sure, you'd have to ask the C++ folks. You mentioned PR61636 though, and
that looks similar - is this one a dup?

[Bug c++/67050] [C++14] ICE when calling a template member function from a lambda with implicit this capture

2015-08-19 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67050

Marek Polacek mpolacek at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2015-08-19
 CC||mpolacek at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #2 from Marek Polacek mpolacek at gcc dot gnu.org ---
With -std=c++1y an ICE started with r200948.


[Bug c++/67050] [C++14] ICE when calling a template member function from a lambda with implicit this capture

2015-08-19 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67050

--- Comment #3 from Marek Polacek mpolacek at gcc dot gnu.org ---
(But it's a different ICE than the one in the Description.)


[Bug c++/67050] [C++14] ICE when calling a template member function from a lambda with implicit this capture

2015-07-29 Thread ldionne.2 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67050

Louis Dionne ldionne.2 at gmail dot com changed:

   What|Removed |Added

 CC||ldionne.2 at gmail dot com

--- Comment #1 from Louis Dionne ldionne.2 at gmail dot com ---
Created attachment 36084
  -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=36084action=edit
Test case

Promised test case