public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/7346: templated conversion operator to dependent type
@ 2002-07-17 16:36 david.abrahams
  0 siblings, 0 replies; 4+ messages in thread
From: david.abrahams @ 2002-07-17 16:36 UTC (permalink / raw)
  To: gcc-gnats


>Number:         7346
>Category:       c++
>Synopsis:       templated conversion operator to dependent type
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 17 16:36:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     david.abrahams@rcn.com
>Release:        3.1
>Organization:
>Environment:
Cygwin
>Description:
Should compile, instead gives:

foo.cpp:10: no `X<T>::operator int() const' member function declared in class `
   X<T>'
foo.cpp:10: template definition of non-template `X<T>::operator int() const'
>How-To-Repeat:
template <class T>
struct X
{
    typedef int result_type;
    operator result_type() const;
};

template <class T>
X<T>::operator typename X<T>::result_type() const
{
    return 0;
}

int x = X<char>();

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

* Re: c++/7346: templated conversion operator to dependent type
@ 2002-10-25 15:58 bangerth
  0 siblings, 0 replies; 4+ messages in thread
From: bangerth @ 2002-10-25 15:58 UTC (permalink / raw)
  To: david.abrahams, gcc-bugs, gcc-prs, nobody

Synopsis: templated conversion operator to dependent type

State-Changed-From-To: analyzed->closed
State-Changed-By: bangerth
State-Changed-When: Fri Oct 25 15:58:01 2002
State-Changed-Why:
    This is a duplicate of PR 7077.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7346


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

* Re: c++/7346: templated conversion operator to dependent type
@ 2002-09-14  5:10 nathan
  0 siblings, 0 replies; 4+ messages in thread
From: nathan @ 2002-09-14  5:10 UTC (permalink / raw)
  To: david.abrahams, gcc-bugs, gcc-prs, nobody

Synopsis: templated conversion operator to dependent type

State-Changed-From-To: open->analyzed
State-Changed-By: nathan
State-Changed-When: Sat Sep 14 05:10:45 2002
State-Changed-Why:
    confirmed

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7346


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

* Re: c++/7346: templated conversion operator to dependent type
@ 2002-07-17 17:16 Gabriel Dos Reis
  0 siblings, 0 replies; 4+ messages in thread
From: Gabriel Dos Reis @ 2002-07-17 17:16 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c++/7346; it has been noted by GNATS.

From: Gabriel Dos Reis <gdr@codesourcery.com>
To: david.abrahams@rcn.com
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: c++/7346: templated conversion operator to dependent type
Date: 18 Jul 2002 02:13:23 +0200

 david.abrahams@rcn.com writes:
 
 [...]
 
 | foo.cpp:10: no `X<T>::operator int() const' member function declared in class `
 |    X<T>'
 | foo.cpp:10: template definition of non-template `X<T>::operator int() const'
 
 This is an instance of a more general problem in GCC/g++.  I should
 probably go and merge all duplicates of this.
 
 -- Gaby


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

end of thread, other threads:[~2002-10-25 22:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-17 16:36 c++/7346: templated conversion operator to dependent type david.abrahams
2002-07-17 17:16 Gabriel Dos Reis
2002-09-14  5:10 nathan
2002-10-25 15:58 bangerth

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).