This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20724] function overload resolution fails when any template is declared
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jul 2005 14:25:48 -0000
- Subject: [Bug c++/20724] function overload resolution fails when any template is declared
- References: <20050402005648.20724.kjd@duda.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2005-07-25 14:25 -------
As for the initial testcase (Andrew's testcase in comment #1),
- gcc3.3 rejects it with and without the template declaration
- icc rejects it with and without the template declaration
- gcc3.4 (and later) rejects it with the template, but accepts it without
the template calling ::foo
I believe that the later gcc compilers are in error. They should reject the
code.
Anyone has other opinions?
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20724