--- Comment #7 from pinskia at gcc dot gnu dot org 2005-11-21 18:20 ---
*** Bug 24977 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added
---
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-24
11:44 ---
*** Bug 23542 has been marked as a duplicate of this bug. ***
--
What|Removed |Added
--- Additional Comments From redi at gcc dot gnu dot org 2005-07-07 00:25
---
Keywords should include "wrong-code", this program should return 0:
static int f(int i)
{
return 1;
}
int f(long l)
{
return 0;
}
template
int g(T t)
{
return f(t);
}
int main()
--- Additional Comments From bangerth at dealii dot org 2004-12-20 21:30
---
Actually, we can make this a rejects-valid like so:
--
namespace NS1 {
struct X {};
void foo(X);
}
namespace NS2 {
static void foo(NS1::X);
template
void bar() {
--- Additional Comments From bangerth at dealii dot org 2004-12-20 20:43
---
Indeed. It seems as if I am not the only one who wasn't aware of the
restriction that dependent function calls can only be to functions with
external linkage.
This should be low priority, since we only acce
--- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-20
18:50 ---
Confirmed.
--
What|Removed |Added
Status|UNCONFIRMED |NEW
E
--- Additional Comments From bagnara at cs dot unipr dot it 2004-12-20
18:32 ---
Created an attachment (id=7784)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7784&action=view)
Small program that allows to reproduce the problem
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19