A template optimization bug
Alexandre Oliva
oliva@dcc.unicamp.br
Sat Dec 5 23:40:00 GMT 1998
On Oct 17, 1998, hjl@lucon.org (H.J. Lu) wrote:
> This filed failed to compile with egcs 1.0.3/1.1/snapshot
> using -O.
> template<class T> class FixSeq { public: void append(const T&); };
> class foo { public: void setupIR(); };
> typedef FixSeq<foo *> bar;
> extern void dummy (foo *);
> void * foobar (bar &x, foo *p) { try { p -> setupIR(); }
> catch(...) { dummy (p); } x.append(p); return p; }
Thanks, I installed this testcase in the testsuite.
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva aoliva@{acm.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
Universidade Estadual de Campinas, SP, Brasil
More information about the Gcc-bugs
mailing list