public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/33004]  New: Cannot resolve call to overloaded function and template functions)
@ 2007-08-06 13:51 rodolfo at rodsoft dot org
  2007-08-06 13:58 ` [Bug c++/33004] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: rodolfo at rodsoft dot org @ 2007-08-06 13:51 UTC (permalink / raw)
  To: gcc-bugs

The following code doesn't compile under gcc-4.2.1 on i686-pc-linux-gnu:

template <class T> void foo(T);
void foo(int);

void bar()
{
    &foo;
}

According to the discussion that began on thread
http://gcc.gnu.org/ml/gcc/2007-07/msg00663.html, then resumed on thread
http://gcc.gnu.org/ml/gcc/2007-07/msg00946.html, the compiler should accept the
code as valid, returning the address of 'void foo(int)'.


-- 
           Summary: Cannot resolve call to overloaded function and template
                    functions)
           Product: gcc
           Version: 4.2.1
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rodolfo at rodsoft dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug c++/33004] Cannot resolve call to overloaded function and template functions)
  2007-08-06 13:51 [Bug c++/33004] New: Cannot resolve call to overloaded function and template functions) rodolfo at rodsoft dot org
@ 2007-08-06 13:58 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-08-06 13:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2007-08-06 13:58 -------


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


-- 

pinskia at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2007-08-06 13:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-06 13:51 [Bug c++/33004] New: Cannot resolve call to overloaded function and template functions) rodolfo at rodsoft dot org
2007-08-06 13:58 ` [Bug c++/33004] " 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).