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++/83258] Rejecting function pointer non-type template parameter without linkage


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

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Testcase from Bug 85589:

template<auto& v> struct foo {};

    int main() {
        static auto v = "str";
        (void) foo<v> {};
    }

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