[net.lang.c++] won't compile

bs@alice.UucP (Bjarne Stroustrup) (09/05/86)

> From: brian@uw-june (Brian Bershad)
> Organization: U of Washington Computer Science, Seattle
> Keywords: pointers, functions, won't compile
>
> The following won't compile:
> 
> --------------------------------
> typedef char * memory ;
>
> struct S	{
> 	memory (*A)(), memory (*B)();	// this is a syntax error
> };
> 
> ---
> but
> ---
>
> Struct S	{
> 	memory (*A)();
> 	memory (*B)();
> };
> 
> will.
> 
> I am still running 1.0 relE here... is this something that has been
> fixed?
> 
> The headache is because the former compiles using /bin/cc and
> I am trying to integrate old C code with some new C++ stuff
> (this is \supposed/ to work....)

Yes, both examples ought to work, but there is a bug in cfront.
Still not fixed in 1.1. Sorry.