[Bug c++/67041] [C++14] Variable template initialized by call to lambda does not compile

ldionne.2 at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Aug 26 19:02:00 GMT 2015


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.



More information about the Gcc-bugs mailing list