public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/19426] New: template class and method with different parameter names
@ 2005-01-13 14:29 douze at enseeiht dot fr
  2005-01-13 14:33 ` [Bug c++/19426] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: douze at enseeiht dot fr @ 2005-01-13 14:29 UTC (permalink / raw)
  To: gcc-bugs

When a class and one of its methods depend on templates, when the method is
defined, the name of the parameters must be the same as in the definition.

-- 
           Summary: template class and method with different parameter names
           Product: gcc
           Version: 3.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: douze at enseeiht dot fr
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i586-mandrake-linux-gnu
  GCC host triplet: i586-mandrake-linux-gnu
GCC target triplet: i586-mandrake-linux-gnu


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


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

* [Bug c++/19426] template class and method with different parameter names
  2005-01-13 14:29 [Bug c++/19426] New: template class and method with different parameter names douze at enseeiht dot fr
@ 2005-01-13 14:33 ` pinskia at gcc dot gnu dot org
  2005-01-13 14:35 ` douze at enseeiht dot fr
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-13 14:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-13 14:33 -------
Do you have an example code?

-- 


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


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

* [Bug c++/19426] template class and method with different parameter names
  2005-01-13 14:29 [Bug c++/19426] New: template class and method with different parameter names douze at enseeiht dot fr
  2005-01-13 14:33 ` [Bug c++/19426] " pinskia at gcc dot gnu dot org
@ 2005-01-13 14:35 ` douze at enseeiht dot fr
  2005-01-13 14:37 ` douze at enseeiht dot fr
  2005-01-13 14:39 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: douze at enseeiht dot fr @ 2005-01-13 14:35 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From douze at enseeiht dot fr  2005-01-13 14:35 -------
Created an attachment (id=7951)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7951&action=view)
short c++ code that fails

result with g++ -c 
x.i: In member function `void* Cl<N>::me(T) [with T = T, int N = 1]':
x.i:10: error: `b' undeclared

-- 


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


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

* [Bug c++/19426] template class and method with different parameter names
  2005-01-13 14:29 [Bug c++/19426] New: template class and method with different parameter names douze at enseeiht dot fr
  2005-01-13 14:33 ` [Bug c++/19426] " pinskia at gcc dot gnu dot org
  2005-01-13 14:35 ` douze at enseeiht dot fr
@ 2005-01-13 14:37 ` douze at enseeiht dot fr
  2005-01-13 14:39 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: douze at enseeiht dot fr @ 2005-01-13 14:37 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From douze at enseeiht dot fr  2005-01-13 14:37 -------
Created an attachment (id=7952)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7952&action=view)
the code that works

compiles ok

-- 


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


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

* [Bug c++/19426] template class and method with different parameter names
  2005-01-13 14:29 [Bug c++/19426] New: template class and method with different parameter names douze at enseeiht dot fr
                   ` (2 preceding siblings ...)
  2005-01-13 14:37 ` douze at enseeiht dot fr
@ 2005-01-13 14:39 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-13 14:39 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-13 14:39 -------
This is a dup of bug 18962 which is fixed in 3.4.4 (which is not released yet) and above.

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

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

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


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


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

end of thread, other threads:[~2005-01-13 14:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-13 14:29 [Bug c++/19426] New: template class and method with different parameter names douze at enseeiht dot fr
2005-01-13 14:33 ` [Bug c++/19426] " pinskia at gcc dot gnu dot org
2005-01-13 14:35 ` douze at enseeiht dot fr
2005-01-13 14:37 ` douze at enseeiht dot fr
2005-01-13 14:39 ` 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).