http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20724
Paolo Carlini changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|gcc-bugs at g
--- Comment #7 from s__nakayama at infoseek dot jp 2006-12-11 19:21 ---
Is this still active?
gcc 4.1.1 accept Andrew's testcase in comment #1.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20724
--- 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 late
--- Additional Comments From gdr at integrable-solutions dot net
2005-07-24 18:21 ---
Subject: Re: function overload resolution fails when any template is declared
"pinskia at gcc dot gnu dot org" <[EMAIL PROTECTED]> writes:
| Both ICC and Comeau accept this.
just a note that since I
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-24
18:02 ---
Both ICC and Comeau accept this.
--
What|Removed |Added
Status|REOPENED
--- Additional Comments From kjd at duda dot org 2005-07-24 17:33 ---
I will admit I've had difficulty understanding the interaction between scope
searching and overload resolution, but I cannot believe gcc is handling this
right. Consider the example program:
/* 1 */ namespace N {
--- Additional Comments From bangerth at dealii dot org 2005-07-23 21:27
---
gcc is actually correct. Per the using declaration in main(), you
introduce N::foo into the scope of foo(), and when foo(enum1) is called
we find the name foo inside namespace N and then stop to search, so ::f
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-02
14:27 ---
Confirmed (fixed up testcase for -pedantic):
namespace N {
int foo ( char * ) { return 200; }
template< typename T > int foo();
}
enum Enum { enum1 };
int foo( Enum const & ) { return 100; }
int main()
--
What|Removed |Added
Keywords||rejects-valid
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20724
--
What|Removed |Added
CC||kjd at duda dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20724
10 matches
Mail list logo