public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17823] New: ICE in find_function_data
@ 2004-10-04 4:33 rth at gcc dot gnu dot org
2004-10-04 5:03 ` [Bug c++/17823] " gdr at cs dot tamu dot edu
2004-10-04 10:07 ` giovannibajo at libero dot it
0 siblings, 2 replies; 3+ messages in thread
From: rth at gcc dot gnu dot org @ 2004-10-04 4:33 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/17823] ICE in find_function_data
2004-10-04 4:33 [Bug c++/17823] New: ICE in find_function_data rth at gcc dot gnu dot org
@ 2004-10-04 5:03 ` gdr at cs dot tamu dot edu
2004-10-04 10:07 ` giovannibajo at libero dot it
1 sibling, 0 replies; 3+ messages in thread
From: gdr at cs dot tamu dot edu @ 2004-10-04 5:03 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/17823] ICE in find_function_data
2004-10-04 4:33 [Bug c++/17823] New: ICE in find_function_data rth at gcc dot gnu dot org
2004-10-04 5:03 ` [Bug c++/17823] " gdr at cs dot tamu dot edu
@ 2004-10-04 10:07 ` giovannibajo at libero dot it
1 sibling, 0 replies; 3+ messages in thread
From: giovannibajo at libero dot it @ 2004-10-04 10:07 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2004-10-04 10:07 -------
*** This bug has been marked as a duplicate of 13744 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17823
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-10-04 10:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-04 4:33 [Bug c++/17823] New: ICE in find_function_data rth at gcc dot gnu dot org
2004-10-04 5:03 ` [Bug c++/17823] " gdr at cs dot tamu dot edu
2004-10-04 10:07 ` giovannibajo at libero dot it
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).