This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/42132] [C++0x] SFINAE failure with cv-qualifiers
- From: "jason at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Nov 2009 21:41:03 -0000
- Subject: [Bug c++/42132] [C++0x] SFINAE failure with cv-qualifiers
- References: <bug-42132-16379@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from jason at gcc dot gnu dot org 2009-11-21 21:41 -------
>Shouldn't SFINAE cause those invalid instantiations to be ignored, silently
>removing the invalid overloads from the overload set, leaving just the one I'm
>trying to call?
No, SFINAE only applies to function signatures; if considering a signature
triggers an invalid instantiation, that makes the program ill-formed.
I think the version without result_of ought to work, however.
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-11-21 21:41:03
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42132