public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/4205] function template can call other function with incorrect parameters
       [not found] <20010902101601.4205.jens.maurer@gmx.net>
@ 2003-12-28  4:31 ` pinskia at gcc dot gnu dot org
  2004-01-03 12:54 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-28  4:31 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-28 04:12 -------
*** Bug 13500 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |japple at freeshell dot org


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


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

* [Bug c++/4205] function template can call other function with incorrect parameters
       [not found] <20010902101601.4205.jens.maurer@gmx.net>
  2003-12-28  4:31 ` [Bug c++/4205] function template can call other function with incorrect parameters pinskia at gcc dot gnu dot org
@ 2004-01-03 12:54 ` pinskia at gcc dot gnu dot org
  2004-01-29  4:18 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-03 12:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-03 12:54 -------
*** Bug 4908 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jajarvi at osl dot iu dot
                   |                            |edu


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


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

* [Bug c++/4205] function template can call other function with incorrect parameters
       [not found] <20010902101601.4205.jens.maurer@gmx.net>
  2003-12-28  4:31 ` [Bug c++/4205] function template can call other function with incorrect parameters pinskia at gcc dot gnu dot org
  2004-01-03 12:54 ` pinskia at gcc dot gnu dot org
@ 2004-01-29  4:18 ` pinskia at gcc dot gnu dot org
  2004-02-01 21:59 ` japple at freeshell dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-29  4:18 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-29 04:18 -------
*** Bug 13916 has been marked as a duplicate of this bug. ***

-- 


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


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

* [Bug c++/4205] function template can call other function with incorrect parameters
       [not found] <20010902101601.4205.jens.maurer@gmx.net>
                   ` (2 preceding siblings ...)
  2004-01-29  4:18 ` pinskia at gcc dot gnu dot org
@ 2004-02-01 21:59 ` japple at freeshell dot org
  2004-02-01 22:21 ` gdr at integrable-solutions dot net
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 11+ messages in thread
From: japple at freeshell dot org @ 2004-02-01 21:59 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From japple at freeshell dot org  2004-02-01 21:59 -------
template<typename T, typename U = int>
struct foo {};
                                                                                
template<template <typename> class TT>
struct bar {};
                                                                                
bar<foo> x;

compiles for me with 3.3.2.  Is this bug related?

-- 


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


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

* [Bug c++/4205] function template can call other function with incorrect parameters
       [not found] <20010902101601.4205.jens.maurer@gmx.net>
                   ` (3 preceding siblings ...)
  2004-02-01 21:59 ` japple at freeshell dot org
@ 2004-02-01 22:21 ` gdr at integrable-solutions dot net
  2004-02-01 22:42 ` japple at freeshell dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 11+ messages in thread
From: gdr at integrable-solutions dot net @ 2004-02-01 22:21 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gdr at integrable-solutions dot net  2004-02-01 22:21 -------
Subject: Re:  function template can call other function with incorrect parameters

"japple at freeshell dot org" <gcc-bugzilla@gcc.gnu.org> writes:

| template<typename T, typename U = int>
| struct foo {};

| template<template <typename> class TT>
| struct bar {};

| bar<foo> x;
| 
| compiles for me with 3.3.2.  Is this bug related?

Not really.  But yes,  you have a point:  GCC currently does not have
a uniform infrastructure for sharing codes for functions and
templates.

-- Gaby


-- 


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


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

* [Bug c++/4205] function template can call other function with incorrect parameters
       [not found] <20010902101601.4205.jens.maurer@gmx.net>
                   ` (4 preceding siblings ...)
  2004-02-01 22:21 ` gdr at integrable-solutions dot net
@ 2004-02-01 22:42 ` japple at freeshell dot org
  2004-02-01 22:57 ` gdr at integrable-solutions dot net
  2005-09-09 13:15 ` rguenth at gcc dot gnu dot org
  7 siblings, 0 replies; 11+ messages in thread
From: japple at freeshell dot org @ 2004-02-01 22:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From japple at freeshell dot org  2004-02-01 22:42 -------
(In reply to comment #8)

> Not really.  But yes,  you have a point:  GCC currently does not have
> a uniform infrastructure for sharing codes for functions and
> templates.

See new bug http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13966

Jim

-- 


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


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

* [Bug c++/4205] function template can call other function with incorrect parameters
       [not found] <20010902101601.4205.jens.maurer@gmx.net>
                   ` (5 preceding siblings ...)
  2004-02-01 22:42 ` japple at freeshell dot org
@ 2004-02-01 22:57 ` gdr at integrable-solutions dot net
  2005-09-09 13:15 ` rguenth at gcc dot gnu dot org
  7 siblings, 0 replies; 11+ messages in thread
From: gdr at integrable-solutions dot net @ 2004-02-01 22:57 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gdr at integrable-solutions dot net  2004-02-01 22:57 -------
Subject: Re:  function template can call other function with incorrect parameters

"japple at freeshell dot org" <gcc-bugzilla@gcc.gnu.org> writes:

| ------- Additional Comments From japple at freeshell dot org  2004-02-01 22:42 -------
| (In reply to comment #8)
| 
| > Not really.  But yes,  you have a point:  GCC currently does not have
| > a uniform infrastructure for sharing codes for functions and
| > templates.
| 
| See new bug http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13966

Thanks.  I should have been clearer.  Technically, this is a GNU
extension that really goes against the C++ committee clarification.
(I don't have the DR number off hand).  There is a special code in
cp/pt.c to implement that extension.  I remember having submitted a
patch to remove it; but at the time, some people think we should keep
it around.  I don't necessarily agree.

-- Gaby


-- 


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


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

* [Bug c++/4205] function template can call other function with incorrect parameters
       [not found] <20010902101601.4205.jens.maurer@gmx.net>
                   ` (6 preceding siblings ...)
  2004-02-01 22:57 ` gdr at integrable-solutions dot net
@ 2005-09-09 13:15 ` rguenth at gcc dot gnu dot org
  7 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2005-09-09 13:15 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rguenth at gcc dot gnu dot org  2005-09-09 13:14 -------
EDG accepts this too.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |4.1.0
   Last reconfirmed|2005-05-01 03:04:25         |2005-09-09 13:14:54
               date|                            |


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


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

* [Bug c++/4205] function template can call other function with incorrect parameters
       [not found] <bug-4205-1824@http.gcc.gnu.org/bugzilla/>
  2007-08-06  5:12 ` pinskia at gcc dot gnu dot org
  2007-08-06  6:26 ` gianni at mariani dot ws
@ 2009-11-19  6:18 ` jason at gcc dot gnu dot org
  2 siblings, 0 replies; 11+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-11-19  6:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #14 from jason at gcc dot gnu dot org  2009-11-19 06:18 -------
This seems to have been fixed sometime in the 4.3 release cycle; it works
properly with the current 4.3, 4.4 and 4.5 branches.


-- 

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu dot org
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug c++/4205] function template can call other function with incorrect parameters
       [not found] <bug-4205-1824@http.gcc.gnu.org/bugzilla/>
  2007-08-06  5:12 ` pinskia at gcc dot gnu dot org
@ 2007-08-06  6:26 ` gianni at mariani dot ws
  2009-11-19  6:18 ` jason at gcc dot gnu dot org
  2 siblings, 0 replies; 11+ messages in thread
From: gianni at mariani dot ws @ 2007-08-06  6:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from gianni at mariani dot ws  2007-08-06 06:26 -------
This seems like a serious bug and it has been around for 6 years and there has
been a patch to fix this as noted by Gaby.

Is someone of the opinion that this should not be fixed ?


-- 


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


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

* [Bug c++/4205] function template can call other function with incorrect parameters
       [not found] <bug-4205-1824@http.gcc.gnu.org/bugzilla/>
@ 2007-08-06  5:12 ` pinskia at gcc dot gnu dot org
  2007-08-06  6:26 ` gianni at mariani dot ws
  2009-11-19  6:18 ` jason at gcc dot gnu dot org
  2 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-08-06  5:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from pinskia at gcc dot gnu dot org  2007-08-06 05:12 -------
*** Bug 32993 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gianni at mariani dot ws


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


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

end of thread, other threads:[~2009-11-19  6:18 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20010902101601.4205.jens.maurer@gmx.net>
2003-12-28  4:31 ` [Bug c++/4205] function template can call other function with incorrect parameters pinskia at gcc dot gnu dot org
2004-01-03 12:54 ` pinskia at gcc dot gnu dot org
2004-01-29  4:18 ` pinskia at gcc dot gnu dot org
2004-02-01 21:59 ` japple at freeshell dot org
2004-02-01 22:21 ` gdr at integrable-solutions dot net
2004-02-01 22:42 ` japple at freeshell dot org
2004-02-01 22:57 ` gdr at integrable-solutions dot net
2005-09-09 13:15 ` rguenth at gcc dot gnu dot org
     [not found] <bug-4205-1824@http.gcc.gnu.org/bugzilla/>
2007-08-06  5:12 ` pinskia at gcc dot gnu dot org
2007-08-06  6:26 ` gianni at mariani dot ws
2009-11-19  6:18 ` jason 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).