Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6930135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:24:31+00:00 2026-05-27T11:24:31+00:00

am developping a compiler using flex/bison. I have this warning in my build output.

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T11:24:32+00:00Added an answer on May 27, 2026 at 11:24 am

    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

    %{
    #include "parser.h"
    %}
    %type <val> expr
    %token <tptr> ID
    

    If you write without any action bison will emit a warning

    expr : ID;
    
    warning: type clash ('tptr' 'val') on default action
    

    Note that the bison level I am currently using print a slighty different message in this case.

    foo.by:10.12:warning: type clash on default action : <tptr> != <val>
    

    To fix this warning you need an explicit action:

    expr : ID { $$ = some_conversion_code($1); }
    

    http://www.gnu.org/s/bison/manual/bison.html#Token-Decl

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a simple compiler in the cygwin environment using flex and bison
I'm developing application using VC++ 6. I have a 3rd party DLL. This library
im developing an application on windows using flash, compiling in AIR 2.0. This compiler
I have the opposite problem as Upgrade Eclipse java compiler : I'm using Eclipse
I'm having trouble executing the lessc compiler from PHP. I'm using Symfony, and have
I'm currently developing a cross-platform C application. Is there any compiler macro which is
I am developping a (relatively small) website in ASP.Net 2.0. I am also using
I'm currently developping an application in java using Hibernate as a persistence manager and
I need to build a quick command line app on my mac using xcode
I have just installed Eclipse CDT on my machine for developping C++ applications. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.