From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25645 invoked by alias); 8 Dec 2003 15:58:24 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 25388 invoked from network); 8 Dec 2003 15:58:13 -0000 Received: from unknown (HELO ixtys.informatik.uni-ulm.de) (134.60.72.39) by sources.redhat.com with SMTP; 8 Dec 2003 15:58:13 -0000 Received: (from heinlein@localhost) by ixtys.informatik.uni-ulm.de (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) id hB8Fw4p30981; Mon, 8 Dec 2003 16:58:04 +0100 Date: Mon, 08 Dec 2003 15:58:00 -0000 Message-Id: <200312081558.hB8Fw4p30981@ixtys.informatik.uni-ulm.de> From: Christian Heinlein To: gcc-bugs@gcc.gnu.org Subject: Bug in GCC 3.2 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2003-12/txt/msg00941.txt.bz2 List-Id: 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 "" # 1 "" # 1 "@16.cxx" namespace A { struct X { void operator () (X) {} } x; } namespace B { using A::x; void f () { x(x); } }