This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17823] New: ICE in find_function_data
- From: "rth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Oct 2004 04:33:03 -0000
- Subject: [Bug c++/17823] New: ICE in find_function_data
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
class Base {
public: virtual void member();
};
template<class F> void function(F func) {
class Derived: public Base {
void member() {
new Derived(*this);
}
};
new Derived;
}
void instantiate(){
function(0);
}
No idea whether this is legal or not, but it ICEs all versions of gcc
since at least 3.2.
--
Summary: ICE in find_function_data
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rth at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17823