This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/22454] [4.0/4.1 Regression] ICE with operator in default argument in template class
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jul 2005 13:54:09 -0000
- Subject: [Bug c++/22454] [4.0/4.1 Regression] ICE with operator in default argument in template class
- References: <20050713102312.22454.gcc@vanviegen.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From reichelt at gcc dot gnu dot org 2005-07-25 13:54 -------
Here's an example with valid code:
=========================================
template<int> struct A
{
A(void(A::*)() = &A::operator+);
void operator+ ();
};
=========================================
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Keywords|ice-on-invalid-code |ice-on-valid-code, monitored
Summary|[4.0/4.1 Regression] |[4.0/4.1 Regression] ICE
|'template class/operator |with operator in default
|overloading/default |argument in template class
|argument' internal compiler |
|error |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22454