From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27197 invoked by alias); 10 Apr 2004 19:32:05 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 27172 invoked by uid 48); 10 Apr 2004 19:32:02 -0000 Date: Sat, 10 Apr 2004 19:55:00 -0000 From: "schnetter at aei dot mpg dot de" To: gcc-bugs@gcc.gnu.org Message-ID: <20040410193158.14912.schnetter@aei.mpg.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/14912] New: Do not print default template arguments in error messages X-Bugzilla-Reason: CC X-SW-Source: 2004-04/txt/msg00902.txt.bz2 List-Id: 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, std::allocator > >, std::allocator<__gnu_norm::vector, std::allocator > > > >, std::allocator<__gnu_norm::vector<__gnu_norm::vector, std::allocator > >, std::allocator<__gnu_norm::vector, std::allocator > > > > > >&, __gnu_norm::vector<__gnu_norm::vector, 3>, std::allocator, 3> > >, std::allocator<__gnu_norm::vector, 3>, std::allocator, 3> > > > >&, __gnu_norm::vector<__gnu_norm::vector >, std::allocator<__gnu_norm::vector > > >&)': /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