This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/15839] Requires definition of literal passed as const reference


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-06 06:32 -------
Here is the reduced source for the linker problem:
struct t
{
 static const int t1 = 1;
};

int g(const int&){}

template <class T>
int f()
{
  return g(t::t1);
}

int main()
{
  f<int>();
}

It shows line 15 when it should show 11.

I looked at the debuging info and this is not a gcc bug but rather a binutils (ld is part of that project) 
bug so please report it to them, http://sources.redhat.com/bugzilla/ 

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]