[Bug c++/17823] ICE in find_function_data
gdr at cs dot tamu dot edu
gcc-bugzilla@gcc.gnu.org
Mon Oct 4 05:03:00 GMT 2004
------- Additional Comments From gdr at cs dot tamu dot edu 2004-10-04 05:03 -------
Subject: Re: New: ICE in find_function_data
"rth at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:
| 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.
Yes, this is valid C++.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17823
More information about the Gcc-bugs
mailing list