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

Reply via email to