c++/2518
nathan@gcc.gnu.org
nathan@gcc.gnu.org
Wed Apr 25 04:16:00 GMT 2001
The following reply was made to PR c++/2518; it has been noted by GNATS.
From: nathan@gcc.gnu.org
To: gcc-gnats@gcc.gnu.org, igodard@rational.com, kcoleman@rational.com,
nobody@gcc.gnu.org
Cc:
Subject: Re: c++/2518
Date: 25 Apr 2001 11:09:58 -0000
Synopsis: user-declared operator new hides standard one
State-Changed-From-To: closed->analyzed
State-Changed-By: nathan
State-Changed-When: Wed Apr 25 04:09:58 2001
State-Changed-Why:
Oops, I was incorrect, not having a std with me.[5.3.4]/9
talks about this. the `operator new' is looked up in the
_global_ scope - not the current scope.
This does mean your placement new declaration in main would
not be seen.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2518&database=gcc
More information about the Gcc-prs
mailing list