[Bug c++/27527] invalid types produced out of argument deduction (SFINAE bug)
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Sep 28 19:38:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27527
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> 2011-09-28 19:26:19 UTC ---
14.9.2/8:
Only invalid types and expressions in the immediate context of the function
type and its template parameter types can result in a deduction failure. [
Note: The evaluation of the substituted types and expressions can result in
side effects such as the instantiation of class template specializations and/or
function template specializations, the generation of implicitly-defined
functions, etc. Such side effects are not in the “immediate context” and can
result in the program being ill-formed. — end note ]
More information about the Gcc-bugs
mailing list