This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17823] ICE in find_function_data
- From: "gdr at cs dot tamu dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Oct 2004 05:03:23 -0000
- Subject: [Bug c++/17823] ICE in find_function_data
- References: <20041004043301.17823.rth@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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