From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4530 invoked by alias); 6 Mar 2003 07:16:01 -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 4502 invoked by uid 71); 6 Mar 2003 07:16:00 -0000 Resent-Date: 6 Mar 2003 07:16:00 -0000 Resent-Message-ID: <20030306071600.4500.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org, azsro001@sneakemail.com Resent-Reply-To: gcc-gnats@gcc.gnu.org, azsro001@sneakemail.com Received: (qmail 32477 invoked by uid 48); 6 Mar 2003 07:06:15 -0000 Message-Id: <20030306070615.32476.qmail@sources.redhat.com> Date: Thu, 06 Mar 2003 07:16:00 -0000 From: azsro001@sneakemail.com Reply-To: azsro001@sneakemail.com To: gcc-gnats@gcc.gnu.org Cc: azsro001@sneakemail.com X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) X-GNATS-Notify: azsro001@sneakemail.com Subject: c++/9976: time defined in :: namespace X-SW-Source: 2003-03/txt/msg00244.txt.bz2 List-Id: >Number: 9976 >Category: c++ >Synopsis: time defined in :: namespace >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Thu Mar 06 07:16:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: azsro001@sneakemail.com >Release: 3.0.4 >Organization: >Environment: redhat 8.0 >Description: time is defined as ::time instead of only as ::std::time (same for other functions in time.h). This is a problem since it causes ambiguities/conflicts when a user wants to do something like using mynamespace::time; time t; >How-To-Repeat: The following code compiles: #include int main () { int k = time(NULL); return 0; }; >Fix: >Release-Note: >Audit-Trail: >Unformatted: