[Bug c++/42132] [C++0x] SFINAE failure with cv-qualifiers
jason at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Nov 21 21:41:00 GMT 2009
------- 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
More information about the Gcc-bugs
mailing list