[Bug libstdc++/48101] obscure error message with std::set<const int>

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Nov 20 14:44:00 GMT 2017


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

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Which causes the code to be accepted. I'd rather do:

template<typename T> class allocator<const T>;  // undefined

so there's an error.


More information about the Gcc-bugs mailing list