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++/67041] [C++14] Variable template initialized by call to lambda does not compile


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67041

--- Comment #1 from Louis Dionne <ldionne.2 at gmail dot com> ---
Can be simplified to:

    template <typename ...Anything>
    auto variable_template = [] { };

    int main() {
        variable_template<>;
    }

Still fails on GCC trunk.


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