This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Bug in GCC 3.2
- From: Christian Heinlein <heinlein at informatik dot uni-ulm dot de>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 8 Dec 2003 16:58:04 +0100
- Subject: Bug in GCC 3.2
The compiler gives an error message,
even though the input is correct.
ixtys$$ uname -a
Linux ixtys 2.2.18 #1 Fri Jan 19 22:10:35 GMT 2001 i686 unknown
ixtys$$ g++ -v
Reading specs from /home/heinlein/soft/GCC/3.2/lib/gcc-lib/i686-pc-linux-gnu/3.2/specs
Configured with: ../gcc-3.2/configure --prefix=/home/heinlein/soft/GCC/3.2
Thread model: posix
gcc version 3.2
ixtys$$ g++ -c -save-temps @16.cxx
@16.cxx: In function `void B::f()':
@16.cxx:4: `A::x' is not a function,
@16.cxx:4: conflict with `A::x'
@16.cxx:8: in call to `x'
ixtys$$ cat @16.ii
# 1 "@16.cxx"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "@16.cxx"
namespace A {
struct X {
void operator () (X) {}
} x;
}
namespace B {
using A::x;
void f () { x(x); }
}