This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

C++ Namespace Regression


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]