[comp.sys.next] f2c trouble with character concatenation

busby@lll-lcc.UUCP (Lee Busby) (08/03/90)

I successfully compiled f2c on my NeXT a few days ago.  However, the
program fails with a "memory bus" error anytime it encounters a
character concatenation expression such as:

	character *20 s
	s = 'big ' // 'trouble'

Program works fine when compiled on Mips or Sun.  Anybody else have
any experiences to share on this subject?  Thanks.

busby@lll-lcc.UUCP (Lee Busby) (08/04/90)

It looks like this problem was due to f2c trying to write into a
string constant.  A quick fix is to compile with the
-fwritable-strings flag.  A better fix would be to find all the
places where f2c wants to write over its strings and redeclare
the variables appropriately.

Thanks to Steven Boker for this suggestion.