c++/2867: Koenig lookup bug
kunert@physik.tu-dresden.de
kunert@physik.tu-dresden.de
Fri May 18 06:16:00 GMT 2001
>Number: 2867
>Category: c++
>Synopsis: Koenig lookup bug
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Fri May 18 06:16:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Thomas Kunert
>Release: gcc version 3.0 20010517
>Organization:
>Environment:
Configured with: ../gcc/configure i686-pc-linux-gnu --enable-shared --prefix=/opt --enable-languages=c,c++,f77
Thread model: single
>Description:
This code:
namespace N {
class A{};
template<class T>
void f( A ){};
}
int main()
{
N::A a;
f<int>(a);
}
results in the error:
x1.cc: In function `int main()':
x1.cc:10: `f' undeclared (first use this function)
x1.cc:10: parse error before `>' token
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-prs
mailing list