This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14912] Do not print default template arguments in error messages
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Mar 2005 02:15:31 -0000
- Subject: [Bug c++/14912] Do not print default template arguments in error messages
- References: <20040410193158.14912.schnetter@aei.mpg.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From giovannibajo at libero dot it 2005-03-24 02:15 -------
(In reply to comment #9)
> Doesn't sound right to me. [...]
> GCC ought to have a heuristic based on the lengths of the version with
> the "with" clause and the version with a full argument substitution, to decide
> whether to use "with" or just substitute the arguments in-line.
I cannot fix all the diagnostic problems in GCC with a single patch, we need to
do this incrementally. The first patch will deal with just removal of default
arguments, and I believe that the less intrusive and clean solution is to
display <default> in the "with" clause.
Your heuristic proposal makes a lot of sense, and we can revisit it when we are
done with the issue described in this bug.
I'd like also to reverse the instantiation context but that's a different patch
again.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14912