🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Bjarne Stroustrup Fri, 05 Sep 1986 15:18
won't compile
#298
Author: Bjarne Stroustrup
Date: Fri, 05 Sep 1986 15:18
33 lines
1206 bytes
> 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.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads