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++/21467] ICE for template function if missing required default argument


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


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