This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/66135] trailing return type error for generic lambda


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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]