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

  • Home
  • SEARCH
  • 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 8185723
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:56:53+00:00 2026-06-07T01:56:53+00:00

Many times when I compile something with a typo or some other typing mismatch,

  • 0

Many times when I compile something with a typo or some other typing mismatch, I get the standard “error: no match for ‘functionname’ in …” error. This is great. Then, especially in the case of overloaded functions and operators, g++ goes on and list like 10 pages of candidates which are just hideous and massive template definitions.

The error message is great, but is there any way to disable it from suggesting other functions variants?

  • 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-06-07T01:56:54+00:00Added an answer on June 7, 2026 at 1:56 am

    As far as I know, there is no compilation flag in GCC to disable the suggested candidates in case of ambiguous function calls.

    Your only hope is perhaps to patch the GCC source code.

    Digging in it (version: 4.7.1), I’ve found what appear to be the relevant function in gcc/cp/pt.c:

    void
    print_candidates(tree fns)
    {
      const char *str = NULL;
      print_candidates_1 (fns, false, &str);
      gcc_assert (str == NULL);
    }
    

    As an educated guess, I think that you only need to comment out the function body.

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

Sidebar

Related Questions

I get this error message many times when trying to do objdump of my
Though this topic has been discussed many times in this forum and all other
If you compile a new version of compiler, how many times should you recompile
Many times I get quick page design inputs from business/clients which will be finally
Many times I see statements like following Y.CustomApp.superclass.render.apply(this, arguments); I know how apply works.
I'm sure that this has been asked MANY times before, but it's still giving
I seem to have faced this problem many times and I wanted to ask
Many times I needed a set of pointers. Every time that happens, I end
Many times I use 'mqsc' for create MQ queue manager from script files but
Many times I work with optimized code (sometimes even involving vectorized loops), which contain

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.