public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/14912] New: Do not print default template arguments in error messages
@ 2004-04-10 19:55 schnetter at aei dot mpg dot de
  2004-04-10 19:55 ` [Bug c++/14912] " pinskia at gcc dot gnu dot org
                   ` (31 more replies)
  0 siblings, 32 replies; 33+ messages in thread
From: schnetter at aei dot mpg dot de @ 2004-04-10 19:55 UTC (permalink / raw)
  To: gcc-bugs

Errors or warnings in templated functions often print a ridiculously long type 
name, especially when the STL is involved, as in 
 
/home/eschnett/Calpha/Cactus/configs/einstein-gfortran-debug/build/CarpetRegrid/centre.cc: 
In function `int CarpetRegrid::Centre(constcGH*, constgh<3>&, int, int, int, 
constCarpet::jjvect&, constCarpet::jjvect&, constCarpet::jjvect&, 
constCarpet::jjvect&, 
__gnu_norm::vector<__gnu_norm::vector<__gnu_norm::vector<bbox<int, 3>, 
std::allocator<bbox<int, 3> > >, std::allocator<__gnu_norm::vector<bbox<int, 
3>, std::allocator<bbox<int, 3> > > > >, 
std::allocator<__gnu_norm::vector<__gnu_norm::vector<bbox<int, 3>, 
std::allocator<bbox<int, 3> > >, std::allocator<__gnu_norm::vector<bbox<int, 
3>, std::allocator<bbox<int, 3> > > > > > >&, 
__gnu_norm::vector<__gnu_norm::vector<vect<vect<bool, 2>, 3>, 
std::allocator<vect<vect<bool, 2>, 3> > >, 
std::allocator<__gnu_norm::vector<vect<vect<bool, 2>, 3>, 
std::allocator<vect<vect<bool, 2>, 3> > > > >&, 
__gnu_norm::vector<__gnu_norm::vector<int, std::allocator<int> >, 
std::allocator<__gnu_norm::vector<int, std::allocator<int> > > >&)': 
/home/eschnett/Calpha/Cactus/configs/einstein-gfortran-debug/build/CarpetRegrid/centre.cc:46: 
warning: comparison between signed and unsigned integer expressions 
 
 
 
I never typed in all this "allocator" and "__gnu_norm" stuff.  I assume these 
are default template parameters.  Would it be possible to not print them?  It 
would make the warning message readable. 
 
Oh.  I just see that there is no space after the "const" keywords.  Is that 
intentional?

-- 
           Summary: Do not print default template arguments in error
                    messages
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: schnetter at aei dot mpg dot de
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14912


^ permalink raw reply	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2005-03-27  3:16 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-10 19:55 [Bug c++/14912] New: Do not print default template arguments in error messages schnetter at aei dot mpg dot de
2004-04-10 19:55 ` [Bug c++/14912] " pinskia at gcc dot gnu dot org
2004-04-10 20:01 ` schnetter at aei dot mpg dot de
2004-04-10 21:50 ` pinskia at gcc dot gnu dot org
2004-04-10 22:40 ` gdr at integrable-solutions dot net
2005-03-23  2:45 ` giovannibajo at libero dot it
2005-03-23  4:55 ` dave at boost-consulting dot com
2005-03-23 10:51 ` giovannibajo at libero dot it
2005-03-23 11:01 ` giovannibajo at libero dot it
2005-03-23 12:55 ` dave at boost-consulting dot com
2005-03-24  2:15 ` giovannibajo at libero dot it
2005-03-25 22:07 ` gdr at integrable-solutions dot net
2005-03-25 22:09 ` gdr at integrable-solutions dot net
2005-03-25 22:09 ` gdr at integrable-solutions dot net
2005-03-25 22:12 ` gdr at integrable-solutions dot net
2005-03-26  0:31 ` giovannibajo at libero dot it
2005-03-26  0:35 ` giovannibajo at libero dot it
2005-03-26  2:01 ` dave at boost-consulting dot com
2005-03-26  4:04 ` gdr at integrable-solutions dot net
2005-03-26  4:06 ` gdr at integrable-solutions dot net
2005-03-26  4:14 ` gdr at integrable-solutions dot net
2005-03-26 11:59 ` giovannibajo at libero dot it
2005-03-26 12:57 ` dave at boost-consulting dot com
2005-03-26 15:40 ` gdr at integrable-solutions dot net
2005-03-26 15:55 ` gdr at integrable-solutions dot net
2005-03-26 16:14 ` dave at boost-consulting dot com
2005-03-26 19:24 ` giovannibajo at libero dot it
2005-03-26 19:26 ` giovannibajo at libero dot it
2005-03-26 19:52 ` gdr at integrable-solutions dot net
2005-03-26 22:58 ` bangerth at dealii dot org
2005-03-27  0:56 ` giovannibajo at libero dot it
2005-03-27  1:53 ` dave at boost-consulting dot com
2005-03-27  3:16 ` gdr at integrable-solutions dot net

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).