public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/24607]  New: poor diagnostic
@ 2005-11-01  5:19 igodard at pacbell dot net
  2005-11-01  5:31 ` [Bug c++/24607] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: igodard at pacbell dot net @ 2005-11-01  5:19 UTC (permalink / raw)
  To: gcc-bugs

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


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

* [Bug c++/24607] poor diagnostic
  2005-11-01  5:19 [Bug c++/24607] New: poor diagnostic igodard at pacbell dot net
@ 2005-11-01  5:31 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-01  5:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2005-11-01 05:31 -------
If we used the caret way of doing things it would just work.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |diagnostic
   Last reconfirmed|0000-00-00 00:00:00         |2005-11-01 05:31:53
               date|                            |


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


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

end of thread, other threads:[~2005-11-01  5:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-01  5:19 [Bug c++/24607] New: poor diagnostic igodard at pacbell dot net
2005-11-01  5:31 ` [Bug c++/24607] " pinskia 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).