This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
C++ Namespace Regression
- To: gcc-bugs at gcc dot gnu dot org
- Subject: C++ Namespace Regression
- From: Chip Salzenberg <chip at valinux dot com>
- Date: Mon, 26 Jun 2000 13:02:53 -0700
Apparently, a recent change broke the installation of function
definitions into namespaces. Consider this source file:
namespace N {
enum { E = 0 };
static int f() { return E; }
}
It won't compile with the current CVS. But check out the "In function":
ns.cc: In function `int f ()':
ns.cc:3: `E' undeclared (first use this function)
ns.cc:3: (Each undeclared identifier is reported only once for each
function it appears in.)
Notice that it doesn't say "N::f".
--
Chip Salzenberg - a.k.a. - <chip@valinux.com>
"I wanted to play hopscotch with the impenetrable mystery of existence,
but he stepped in a wormhole and had to go in early." // MST3K