This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/24607] New: poor diagnostic
- From: "igodard at pacbell dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Nov 2005 05:19:51 -0000
- Subject: [Bug c++/24607] New: poor diagnostic
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
template<typename T> class A{};
template<typename T> class B{};
template<typename T> class C{};
template<typename T> class D{};
template<typename T> class E{};
template<typename T> void f() {
typedef A<typename B<D<E<int> > > > 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