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; 53+ 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] 53+ messages in thread
[parent not found: <bug-14912-7427@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2009-07-29 21:09 UTC | newest]

Thread overview: 53+ 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
     [not found] <bug-14912-7427@http.gcc.gnu.org/bugzilla/>
2007-10-12 11:05 ` pcarlini at suse dot de
2007-10-15 14:05 ` pluto at agmk dot net
2008-09-19 12:24 ` b0ntrict0r at yandex dot ru
2008-09-22  9:23 ` pluto at agmk dot net
2008-09-22 15:13 ` b0ntrict0r at yandex dot ru
2008-09-22 21:55 ` pluto at agmk dot net
2008-09-23 10:13 ` pluto at agmk dot net
2008-09-23 10:14 ` pluto at agmk dot net
2008-09-23 14:32 ` b0ntrict0r at yandex dot ru
2008-09-25 13:21 ` pluto at agmk dot net
2009-03-02 21:04 ` pluto at agmk dot net
2009-03-02 21:59 ` hjl dot tools at gmail dot com
2009-03-03 18:55 ` jason at gcc dot gnu dot org
2009-03-23 19:01 ` pluto at agmk dot net
2009-04-05  6:06 ` jason at gcc dot gnu dot org
2009-04-05 19:29 ` jason at gcc dot gnu dot org
2009-04-09 20:30 ` jason at gcc dot gnu dot org
2009-07-26 10:38 ` arekm at pld-linux dot org
2009-07-29 20:36 ` jason at gcc dot gnu dot org
2009-07-29 21:09 ` jason at gcc dot gnu dot org

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).