From: krist DOT blomme AT sidmar DOT be X-Lotus-FromDomain: SIDMAR To: djgpp AT delorie DOT com Message-ID: <412566A9.00509E79.00@nsgate1> Date: Mon, 26 Oct 1998 15:47:19 +0100 Subject: Q : bison : object as YYSTYPE Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Reply-To: djgpp AT delorie DOT com Hi, The application that I am trying to implement changes a certain text to a text in a different format, given some rules. When I was trying to set the standard type to a typedef'd datatype (i.e. a char[n] datatype), I got the following error message gcc -c test_tab.c bison.simple: In function `yyparse': bison.simple:457: incompatible types in assignment bison.simple:479: incompatible types in assignment bison.simple:516: incompatible types in assignment bison.simple:685: incompatible types in assignment make.exe: *** [test_tab.o] Error 1 After inspection, these errors where due to the fact that the assignment operator was not defined for this datatype. Is there a workaround for this problem ? Should I change the bison.simple file so that the correct assignment is done (A memcpy would be more general) ? sincerely Krist Blomme