public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/9975: time defined in :: namespace
@ 2003-03-06  7:06 azsro001
  0 siblings, 0 replies; only message in thread
From: azsro001 @ 2003-03-06  7:06 UTC (permalink / raw)
  To: gcc-gnats


>Number:         9975
>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:06: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 <ctime>
int main ()
{
  int k = time(NULL);
  return 0;
};
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-03-06  7:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-06  7:06 c++/9975: time defined in :: namespace azsro001

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).