public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* parse bug in 4.0.0?
@ 2005-05-03 19:21 Paul Koning
  2005-05-03 20:29 ` Gabriel Dos Reis
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Koning @ 2005-05-03 19:21 UTC (permalink / raw)
  To: gcc

This test program:

struct bar;

template <class T> 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.

	paul

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: parse bug in 4.0.0?
  2005-05-03 19:21 parse bug in 4.0.0? Paul Koning
@ 2005-05-03 20:29 ` Gabriel Dos Reis
  0 siblings, 0 replies; 2+ messages in thread
From: Gabriel Dos Reis @ 2005-05-03 20:29 UTC (permalink / raw)
  To: Paul Koning; +Cc: gcc

Paul Koning <pkoning@equallogic.com> writes:

| This test program:
| 
| struct bar;
| 
| template <class T> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-05-03 20:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-03 19:21 parse bug in 4.0.0? Paul Koning
2005-05-03 20:29 ` Gabriel Dos Reis

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).