From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20320 invoked by alias); 1 Nov 2005 05:19:54 -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 20308 invoked by uid 48); 1 Nov 2005 05:19:51 -0000 Date: Tue, 01 Nov 2005 05:19:00 -0000 Subject: [Bug c++/24607] New: poor diagnostic X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "igodard at pacbell dot net" X-SW-Source: 2005-11/txt/msg00028.txt.bz2 List-Id: template class A{}; template class B{}; template class C{}; template class D{}; template class E{}; template void f() { typedef A > > > foo; } gets you: ~/ootbc/members/src$ g++ foo.cc foo.cc: In function `void f()': foo.cc:7: error: template argument 1 is invalid foo.cc:7: error: ISO C++ forbids declaration of `foo' with no type In template metaprogramming spaghetti, it would sure help if the diagnostic said just *which* template invocation had argument trouble. Ivan -- Summary: poor diagnostic Product: gcc Version: 3.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: igodard at pacbell dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24607