am developping a compiler using flex/bison.
I have this warning in my build output.
warning: type clash ('s' '') on default action
any help please?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It seems to be related to your %token and %type declaration in your source.
without the source line and the related token and type declaration it is difficult to help you.
If you specify an expr of type val and definer an ID token of type tptr
If you write without any action bison will emit a warning
Note that the bison level I am currently using print a slighty different message in this case.
To fix this warning you need an explicit action:
http://www.gnu.org/s/bison/manual/bison.html#Token-Decl