public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/16191] New: Note for missing 'template' reports wrong template paramater
@ 2004-06-25  4:06 giovannibajo at libero dot it
  2004-06-25  5:41 ` [Bug c++/16191] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: giovannibajo at libero dot it @ 2004-06-25  4:06 UTC (permalink / raw)
  To: gcc-bugs

template <typename Q> struct A { template <typename> struct B {}; };
template <typename T> struct C : A<T>::B<T> {};

jeffmir.cc:2: error: non-template `B' used as template
jeffmir.cc:2: note: use `A<Q>::template B' to indicate that it is a template

The message could be improved by saying "A<T>::template B", or 
even "A<T>::template B<T>".

-- 
           Summary: Note for missing 'template' reports wrong template
                    paramater
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: enhancement
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: giovannibajo at libero dot it
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug c++/16191] Note for missing 'template' reports wrong template paramater
  2004-06-25  4:06 [Bug c++/16191] New: Note for missing 'template' reports wrong template paramater giovannibajo at libero dot it
@ 2004-06-25  5:41 ` pinskia at gcc dot gnu dot org
  2004-06-25 14:15 ` bangerth at dealii dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-25  5:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-25 05:40 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-06-25 05:40:43
               date|                            |


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


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

* [Bug c++/16191] Note for missing 'template' reports wrong template paramater
  2004-06-25  4:06 [Bug c++/16191] New: Note for missing 'template' reports wrong template paramater giovannibajo at libero dot it
  2004-06-25  5:41 ` [Bug c++/16191] " pinskia at gcc dot gnu dot org
@ 2004-06-25 14:15 ` bangerth at dealii dot org
  2004-09-25 16:49 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bangerth at dealii dot org @ 2004-06-25 14:15 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bangerth at dealii dot org  2004-06-25 13:54 -------
And I think that the first line should say that 'B' is in a 
non-template context, but is used as a template. Because of 
course 'B' _is_ a template and that the compiler only thinks 
it is not because it is used in a non-template context. 
 
W. 

-- 


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


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

* [Bug c++/16191] Note for missing 'template' reports wrong template paramater
  2004-06-25  4:06 [Bug c++/16191] New: Note for missing 'template' reports wrong template paramater giovannibajo at libero dot it
  2004-06-25  5:41 ` [Bug c++/16191] " pinskia at gcc dot gnu dot org
  2004-06-25 14:15 ` bangerth at dealii dot org
@ 2004-09-25 16:49 ` pinskia at gcc dot gnu dot org
  2004-09-26  0:44 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-25 16:49 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-25 16:49 -------
There is another bug about this problem with repsect with Q vs T.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2004-06-25 05:40:43         |2004-09-25 16:49:30
               date|                            |


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


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

* [Bug c++/16191] Note for missing 'template' reports wrong template paramater
  2004-06-25  4:06 [Bug c++/16191] New: Note for missing 'template' reports wrong template paramater giovannibajo at libero dot it
                   ` (2 preceding siblings ...)
  2004-09-25 16:49 ` pinskia at gcc dot gnu dot org
@ 2004-09-26  0:44 ` pinskia at gcc dot gnu dot org
  2004-09-26  1:13 ` giovannibajo at libero dot it
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-26  0:44 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-26 00:44 -------
Yes I found the bug. PR 99.

*** This bug has been marked as a duplicate of 99 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


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


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

* [Bug c++/16191] Note for missing 'template' reports wrong template paramater
  2004-06-25  4:06 [Bug c++/16191] New: Note for missing 'template' reports wrong template paramater giovannibajo at libero dot it
                   ` (3 preceding siblings ...)
  2004-09-26  0:44 ` pinskia at gcc dot gnu dot org
@ 2004-09-26  1:13 ` giovannibajo at libero dot it
  2004-09-26  1:17 ` pinskia at gcc dot gnu dot org
  2005-02-12 22:36 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: giovannibajo at libero dot it @ 2004-09-26  1:13 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From giovannibajo at libero dot it  2004-09-26 01:13 -------
Uh? I didn't even mention the Q vs T problem. Can you be a little more careful 
when you close the bugs, Andrew?

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|DUPLICATE                   |


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


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

* [Bug c++/16191] Note for missing 'template' reports wrong template paramater
  2004-06-25  4:06 [Bug c++/16191] New: Note for missing 'template' reports wrong template paramater giovannibajo at libero dot it
                   ` (4 preceding siblings ...)
  2004-09-26  1:13 ` giovannibajo at libero dot it
@ 2004-09-26  1:17 ` pinskia at gcc dot gnu dot org
  2005-02-12 22:36 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-26  1:17 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-26 01:17 -------
Maybe I read this sentence wrong then:
The message could be improved by saying "A<T>::template B", or even "A<T>::template B<T>".
(for reference the error message:
jeffmir.cc:2: note: use `A<Q>::template B' to indicate that it is a template
)
which does mentions the T vs Q problem.

-- 


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


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

* [Bug c++/16191] Note for missing 'template' reports wrong template paramater
  2004-06-25  4:06 [Bug c++/16191] New: Note for missing 'template' reports wrong template paramater giovannibajo at libero dot it
                   ` (5 preceding siblings ...)
  2004-09-26  1:17 ` pinskia at gcc dot gnu dot org
@ 2005-02-12 22:36 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-12 22:36 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |NEW


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


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

end of thread, other threads:[~2005-02-12 21:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-25  4:06 [Bug c++/16191] New: Note for missing 'template' reports wrong template paramater giovannibajo at libero dot it
2004-06-25  5:41 ` [Bug c++/16191] " pinskia at gcc dot gnu dot org
2004-06-25 14:15 ` bangerth at dealii dot org
2004-09-25 16:49 ` pinskia at gcc dot gnu dot org
2004-09-26  0:44 ` pinskia at gcc dot gnu dot org
2004-09-26  1:13 ` giovannibajo at libero dot it
2004-09-26  1:17 ` pinskia at gcc dot gnu dot org
2005-02-12 22:36 ` 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).