------- Additional Comments From giovannibajo at libero dot it  2004-10-28 03:58 
-------
No, this is not a substitution failure, but rather a deduction failure. We 
cannot deduce the enum from the function call because it is not a valid non-
type template parameter.

What is questionable here is the error message GCC produce. I have been 
wondering for a while what is the best solution -- to me, it looks like we 
should always list the overloads we rejects, with a brief motivation of why 
they got rejected. I guess this would help tremendously.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |giovannibajo at libero dot
                   |                            |it
           Severity|normal                      |enhancement
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |diagnostic
   Last reconfirmed|0000-00-00 00:00:00         |2004-10-28 03:58:46
               date|                            |
            Summary|g++ 3.4.1 and 3.5 forget a  |Improve diagnostic for empty
                   |template function definition|overload set listing the
                   |                            |rejected overloads


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17166

Reply via email to