This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16635] g++ instantiates templates at the wrong place
- 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: 23 Jun 2005 01:28:01 -0000
- Subject: [Bug c++/16635] g++ instantiates templates at the wrong place
- References: <20040719194521.16635.geoffk@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-23 01:27 -------
(In reply to comment #6)
> (In reply to comment #5)
> > Here's the same thing with overloaded functions, causing a wrong-code error. If the last definition
of
> > 'bar' is commented out, the testcase passes, but otherwise not.
> That code is acutally invalid and really should have been rejected see PR 2922 for that.
Also if we move the template func after bar and main after the second bar, we get back to basicially PR
2922. So the first testcase is the only one which the problem for this bug.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16635