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 7985711
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T11:38:00+00:00 2026-06-04T11:38:00+00:00

Compilation errors with templates are often obscure and not easily decipherable unless one is

  • 0

Compilation errors with templates are often obscure and not easily decipherable unless one is really well versed with templates. Many times an expert programmer might as well be flummoxed by these. I am sure most of us have felt the pinch of it many a times.

As I understand the C++ standard only mandates implementations to provide a diagnostic for an ill-formed program but not how or what diagnostic messages shall be provided.
However, are there any guidelines laid out by the Standards committee to overcome this problem of not easily decipherable diagnostics (especially) in case of templates. Has this ever even come up for a discussion?
Also, are the mainstream implementations doing something about or have planned about this issue?

The question is quite open ended for discussion but with the SO C++ community being one of the most active C++ communities I am sure someone somewhere must have at least some idea of this.
Also, a few of Standards committee members (I know) actively participate on the C++ tag, I am hoping they might have some information on this if et al.

  • 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-04T11:38:01+00:00Added an answer on June 4, 2026 at 11:38 am

    You’re asking two separate questions.

    First of all, yes, mainstream implementations are doing something about it. It may not be a top priority for g++ or msvc, but those aren’t the only mainstream implementations. It was one of the design goals behind clang (see http://clang.llvm.org/diagnostics.html), and at least at some point Intel listed better template errors as a selling point for ic++ over msvc.

    Second, people on the standards committee discussed this in detail, and mostly agreed that concepts were a big part of the answer, which effectively means that it’s been put off to the future since concepts were removed from the C++11 standard.

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

Sidebar

Related Questions

I'm a big fan of compilation errors. I find the a lot easier to
Magento 1.4.2 Having compilation errors and the page doesn't render. I get errors but
It's a Heap implemented by myself(for algorithm contest).There are some compilation errors that I
Java + gwt + hibernate => the compilation has no errors Java + gwt
I am getting an compilation error not a statement for the below code. Not
I am trying to setup dynamic compilation of Cheetah templates, useful for development (so
Possible Duplicates: Templated function being reported as “undefined reference” during compilation Why can templates
Why does the following give no compilation error?: // T.h template<class T> class X
I got a strange compilation error when I followed the MSDN document to use
the code below gives compilation error when I try to create test t[2]; because

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.