public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* C++ parser bug?
@ 1998-04-23 18:49 Charles M. Hannum
  0 siblings, 0 replies; 2+ messages in thread
From: Charles M. Hannum @ 1998-04-23 18:49 UTC (permalink / raw)
  To: egcs

This seems to be a new bug in egcs 1.0.2 (since gcc 2.7.2.2).  The
following code generates syntax errors:

extern "C" {
struct proc;
extern void Tcl_SetPanicProc (void (*proc) (char *format, ...));
};

# c++ -O2 -S bar.i
bar.i:3: syntax error before `)'
bar.i:3: syntax error before `)'
# 

Apparently there's some confusion here because `proc' is already
defined as a structure name.

Oddly, the following actually compiles:

extern "C" {
struct proc;
extern int proc;
extern void Tcl_SetPanicProc (void (*proc) (char *format, ...));
};

(This bug causes vic and vat to not compile with egcs.)


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

* Re: C++ parser bug?
@ 1998-04-23 18:49 Charles M. Hannum
  0 siblings, 0 replies; 2+ messages in thread
From: Charles M. Hannum @ 1998-04-23 18:49 UTC (permalink / raw)
  To: egcs

Actually, I'm mistaken.  GCC 2.7.2.2 does exhibit the same behaviour.

The question remains whether or not this is correct, though...


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

end of thread, other threads:[~1998-04-23 18:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-04-23 18:49 C++ parser bug? Charles M. Hannum
1998-04-23 18:49 Charles M. Hannum

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