This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12423] Function template fails to match
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Sep 2003 17:58:52 -0000
- Subject: [Bug c++/12423] Function template fails to match
- References: <20030926173603.12423.mj1@cog.brown.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12423
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
------- Additional Comments From bangerth at dealii dot org 2003-09-26 17:58 -------
That's not a bug. std::map has no type data_type (it might have
had one in the past, but it doesn't have in 3.3) so the return
type is invalid after matching the function argument types. Thus,
SFINAE comes into play and the template is rejected as a candidate.
W.