Re: parse bug in 4.0.0?

2005-05-03 Thread Gabriel Dos Reis
Paul Koning <[EMAIL PROTECTED]> writes: | This test program: | | struct bar; | | template struct bar *foo (T *p) | { | return p->t; | } | | produces an error in 4.0.0: yes, a parser bug. good candidate for bugzilla PR. -- Gaby

parse bug in 4.0.0?

2005-05-03 Thread Paul Koning
This test program: struct bar; template struct bar *foo (T *p) { return p->t; } produces an error in 4.0.0: test.cc:3: error: β??barβ?? is not a template type Without the keyword "struct" it compiles fine. Earlier versions (3.3.2, and I'm pretty sure 3.4.1 as well) don't complain.