This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/48101] obscure error message with std::set<const int>
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 20 Nov 2017 14:44:26 +0000
- Subject: [Bug libstdc++/48101] obscure error message with std::set<const int>
- Auto-submitted: auto-generated
- References: <bug-48101-4@http.gcc.gnu.org/bugzilla/>
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.