public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/18721] New: template conversion function regression
@ 2004-11-29 17:09 belz at kolumbus dot fi
  2004-11-29 17:12 ` [Bug c++/18721] [4.0 Regression] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: belz at kolumbus dot fi @ 2004-11-29 17:09 UTC (permalink / raw)
  To: gcc-bugs

Bug #9126 is well known, however it seems the current g++ 4.0.0 cvs version does 
not even allow overloading a templated conversion function.

struct A {
    template<typename T>
    operator T() const;

    operator float() const;
};


$ g++ templ_conv.cpp
templ_conv.cpp:6: error: declaration of 'A::operator float() const'
templ_conv.cpp:4: error: conflicts with previous declaration 'A::operator T() 
const'

I have tested with many 4.0.0 versions, the last one was:

$ g++ -v
Reading specs from /usr/local/lib/gcc/i686-pc-linux-gnu/4.0.0/specs
Configured with: ../gcc/configure --enable-languages=c++,c --enable-
threads=posix
Thread model: posix
gcc version 4.0.0 20041129 (experimental)


Mikael

-- 
           Summary: template conversion function regression
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: belz at kolumbus dot fi
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug c++/18721] [4.0 Regression] template conversion function regression
  2004-11-29 17:09 [Bug c++/18721] New: template conversion function regression belz at kolumbus dot fi
@ 2004-11-29 17:12 ` pinskia at gcc dot gnu dot org
  2004-11-29 17:51 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-29 17:12 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-29 17:12 -------
: Search converges between 2004-07-14-trunk (#486) and 2004-07-16-trunk (#487).

Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |rejects-valid
   Last reconfirmed|0000-00-00 00:00:00         |2004-11-29 17:12:56
               date|                            |
            Summary|template conversion function|[4.0 Regression] template
                   |regression                  |conversion function
                   |                            |regression
   Target Milestone|---                         |4.0.0


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


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

* [Bug c++/18721] [4.0 Regression] template conversion function regression
  2004-11-29 17:09 [Bug c++/18721] New: template conversion function regression belz at kolumbus dot fi
  2004-11-29 17:12 ` [Bug c++/18721] [4.0 Regression] " pinskia at gcc dot gnu dot org
@ 2004-11-29 17:51 ` pinskia at gcc dot gnu dot org
  2004-11-29 23:45 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-29 17:51 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-29 17:51 -------
*** Bug 18722 has been marked as a duplicate of this bug. ***

-- 


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


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

* [Bug c++/18721] [4.0 Regression] template conversion function regression
  2004-11-29 17:09 [Bug c++/18721] New: template conversion function regression belz at kolumbus dot fi
  2004-11-29 17:12 ` [Bug c++/18721] [4.0 Regression] " pinskia at gcc dot gnu dot org
  2004-11-29 17:51 ` pinskia at gcc dot gnu dot org
@ 2004-11-29 23:45 ` pinskia at gcc dot gnu dot org
  2004-11-29 23:46 ` mmitchel at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-29 23:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-29 23:44 -------
I almost think it was caused by: <http://gcc.gnu.org/ml/gcc-patches/2004-07/msg01444.html> but I 
could be wrong.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org, mark at codesourcery
                   |                            |dot com


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


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

* [Bug c++/18721] [4.0 Regression] template conversion function regression
  2004-11-29 17:09 [Bug c++/18721] New: template conversion function regression belz at kolumbus dot fi
                   ` (2 preceding siblings ...)
  2004-11-29 23:45 ` pinskia at gcc dot gnu dot org
@ 2004-11-29 23:46 ` mmitchel at gcc dot gnu dot org
  2004-12-17 11:41 ` nathan at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-11-29 23:46 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |mark at codesourcery dot com
                   |dot org                     |
             Status|NEW                         |ASSIGNED


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


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

* [Bug c++/18721] [4.0 Regression] template conversion function regression
  2004-11-29 17:09 [Bug c++/18721] New: template conversion function regression belz at kolumbus dot fi
                   ` (4 preceding siblings ...)
  2004-12-17 11:41 ` nathan at gcc dot gnu dot org
@ 2004-12-17 11:41 ` nathan at gcc dot gnu dot org
  2004-12-17 16:00 ` nathan at gcc dot gnu dot org
  2004-12-17 16:17 ` nathan at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: nathan at gcc dot gnu dot org @ 2004-12-17 11:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From nathan at gcc dot gnu dot org  2004-12-17 11:41 -------
I think I might have a fix for this

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|nathan at codesourcery dot  |nathan at gcc dot gnu dot
                   |com                         |org


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


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

* [Bug c++/18721] [4.0 Regression] template conversion function regression
  2004-11-29 17:09 [Bug c++/18721] New: template conversion function regression belz at kolumbus dot fi
                   ` (3 preceding siblings ...)
  2004-11-29 23:46 ` mmitchel at gcc dot gnu dot org
@ 2004-12-17 11:41 ` nathan at gcc dot gnu dot org
  2004-12-17 11:41 ` nathan at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: nathan at gcc dot gnu dot org @ 2004-12-17 11:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From nathan at gcc dot gnu dot org  2004-12-17 11:41 -------
I think I might have a fix for this

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|mark at codesourcery dot com|nathan at codesourcery dot
                   |                            |com


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


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

* [Bug c++/18721] [4.0 Regression] template conversion function regression
  2004-11-29 17:09 [Bug c++/18721] New: template conversion function regression belz at kolumbus dot fi
                   ` (5 preceding siblings ...)
  2004-12-17 11:41 ` nathan at gcc dot gnu dot org
@ 2004-12-17 16:00 ` nathan at gcc dot gnu dot org
  2004-12-17 16:17 ` nathan at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: nathan at gcc dot gnu dot org @ 2004-12-17 16:00 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From nathan at gcc dot gnu dot org  2004-12-17 16:00 -------
2004-12-17  Nathan Sidwell  <nathan@codesourcery.com>

	PR c++/18721
	* class.c (add_method): Do not push conversion operators into a
	binding level.

-- 


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


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

* [Bug c++/18721] [4.0 Regression] template conversion function regression
  2004-11-29 17:09 [Bug c++/18721] New: template conversion function regression belz at kolumbus dot fi
                   ` (6 preceding siblings ...)
  2004-12-17 16:00 ` nathan at gcc dot gnu dot org
@ 2004-12-17 16:17 ` nathan at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: nathan at gcc dot gnu dot org @ 2004-12-17 16:17 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From nathan at gcc dot gnu dot org  2004-12-17 16:17 -------
fixed

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2004-12-17 16:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-29 17:09 [Bug c++/18721] New: template conversion function regression belz at kolumbus dot fi
2004-11-29 17:12 ` [Bug c++/18721] [4.0 Regression] " pinskia at gcc dot gnu dot org
2004-11-29 17:51 ` pinskia at gcc dot gnu dot org
2004-11-29 23:45 ` pinskia at gcc dot gnu dot org
2004-11-29 23:46 ` mmitchel at gcc dot gnu dot org
2004-12-17 11:41 ` nathan at gcc dot gnu dot org
2004-12-17 11:41 ` nathan at gcc dot gnu dot org
2004-12-17 16:00 ` nathan at gcc dot gnu dot org
2004-12-17 16:17 ` nathan 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).