From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25390 invoked by alias); 3 Mar 2003 19:47:23 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 25365 invoked by uid 48); 3 Mar 2003 19:47:23 -0000 Date: Mon, 03 Mar 2003 19:47:00 -0000 Message-ID: <20030303194723.25364.qmail@sources.redhat.com> To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, yaqb@poczta.neostrada.pl From: bangerth@dealii.org Reply-To: bangerth@dealii.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, yaqb@poczta.neostrada.pl, gcc-gnats@gcc.gnu.org Subject: Re: c++/9924: [3.2/3.3/3.4 regression] Multiple using statements for builtin functions not allowed X-SW-Source: 2003-03/txt/msg00113.txt.bz2 List-Id: Old Synopsis: Multiple using __gnu_cxx::llabs breaks compilation. New Synopsis: [3.2/3.3/3.4 regression] Multiple using statements for builtin functions not allowed State-Changed-From-To: open->analyzed State-Changed-By: bangerth State-Changed-When: Mon Mar 3 19:47:23 2003 State-Changed-Why: Confirmed. The problem has nothing to do with namespace __gnu_cxx, but indeed something with builtins. This code also shows the problem: ------------------------- namespace NS { void llabs(long long x); } namespace std { using NS::llabs; using NS::llabs; } ------------------ g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc x.cc:7: error: `llabs' is already declared in this scope If llabs is renamed to foo, then the code compiles cleanly. This seems like a bug. The problem occurs with 3.2, 3.3, and 3.4 branches. It doesn't happen with 3.0. W. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9924