This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/66135] trailing return type error for generic lambda
- From: "ldionne.2 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 27 Aug 2015 23:19:43 +0000
- Subject: [Bug c++/66135] trailing return type error for generic lambda
- Auto-submitted: auto-generated
- References: <bug-66135-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66135
Louis Dionne <ldionne.2 at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ldionne.2 at gmail dot com
--- Comment #2 from Louis Dionne <ldionne.2 at gmail dot com> ---
Another test case:
template <typename T>
void f(T) {
[](auto& x) -> decltype(x.foo()) { };
}
template void f(int);
And a variation, which also yields an invalid "x has incomplete type" error:
template <typename T>
void f(T) {
[](auto x) -> decltype(x.foo()) { };
}
template void f(int);