Example of GCC 2.95 member templates letting me down

Alexandre Oliva oliva@dcc.unicamp.br
Tue Jul 20 05:04:00 GMT 1999


On Jul 20, 1999, Alexandre Oliva <oliva@dcc.unicamp.br> wrote:

>   typedef typeof(b) b_t;

Oops, I was experimenting with typeof but failed to revert to the
original case.  The word-around should have read:

  b.B::bar<T>();


Additional findings:

  b.__typeof__(b)::bar<T>(); // parse error
  typedef __typeof__(b) b_t; 
  b.b_t::bar<T>(); // ICE

I'm installing an additional testcase for the ICE.  I'm not sure about 
the parse error, should this be accepted?

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{dcc.unicamp.br,guarana.{org,com}} aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them



More information about the Gcc-patches mailing list