This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/24602] g++: Internal error: Illegal instruction (program cc1plus)
- 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: 17 Nov 2005 11:59:15 -0000
- Subject: [Bug c++/24602] g++: Internal error: Illegal instruction (program cc1plus)
- References: <bug-24602-11622@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from reichelt at gcc dot gnu dot org 2005-11-17 11:59 -------
Here's a sightly simpler testcase.
If I remove the copy-ctor from A, I get the failure from PR24606.
=========================================
template<typename F> void foo(F f)
{
f();
}
struct A
{
A();
A(const A&);
};
template<int> void bar(A = A());
void baz()
{
foo(bar<0>);
}
=========================================
Btw, removing the template from "bar" makes the code compile.
So it seems like the code is valid after all.
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |ice-on-valid-code, monitored
Last reconfirmed|0000-00-00 00:00:00 |2005-11-17 11:59:15
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24602