This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/42132] [C++0x] SFINAE failure with cv-qualifiers



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]