This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15839] Requires definition of literal passed as const reference
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jun 2004 06:32:23 -0000
- Subject: [Bug c++/15839] Requires definition of literal passed as const reference
- References: <20040606043337.15839.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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