On 25 May 2009, at 22:11, Luca wrote:

I successfully compiled a union containing pair<const string,int>* it; using bison 2.4.1. I think you can use pointers to C++ class inside a union without any trouble. Just try it.

Checking what the compiler accepts is a good way to produce non- standard source code - and you do not say what compiler you used.

But in the end, I think the OP problem might be due to an older version of Bison or an instantiation problem - lack of declaration or a problem with the compiler.

  Hans




_______________________________________________
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to