This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21467] ICE for template function if missing required default argument
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 May 2005 14:03:32 -0000
- Subject: [Bug c++/21467] ICE for template function if missing required default argument
- References: <20050509122905.21467.sylvain.joyeux@m4x.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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