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: 27 Mar 2005 00:56:17 -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-27 00:56 -------
(In reply to comment #31)
> >Patched:
> >test.cc: In member function 'void A<T, N, X>::foo() [with T = int]':
> >test.cc:14: instantiated from here
> >test.cc:9: error: 'class std::vector<int>' has no member
named 'doesnotexist'
>
> That's a good improvement, but do you think you could write the first line
> with A<T> instead of A<T,N,X>? I find it confusing to see the second and
> third template argument, but then no explanation as to their values...
That's exactly what I was hinting at at the end of comment #7. I then
implemented the solution proposed in comment #8 (showing them with <default>),
until Gaby said it would be a showstopper.
I will investigate printing A<T> instead of A<T,N,X>, but I am not confident it
can be done easily (if at all).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14912