[Bug c++/21467] ICE for template function if missing required default argument

giovannibajo at libero dot it gcc-bugzilla@gcc.gnu.org
Mon May 9 14:12:00 GMT 2005


------- Additional Comments From giovannibajo at libero dot it  2005-05-09 14:03 -------
The real bug is this accepts-invalid:

--------------------------------------------
template<typename F> 
void test(F function, bool arg0 = false, bool arg1) 
{} 
--------------------------------------------

The ICE when you call the function is just a fallout of not having properly 
validated the parameter declarations.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid


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



More information about the Gcc-bugs mailing list