This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13164] New: wrong error when using instance of class to access static var
- From: "wackysteak at mac dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Nov 2003 07:25:20 -0000
- Subject: [Bug c++/13164] New: wrong error when using instance of class to access static var
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
error: `_name' undeclared (first use this function)
results from:
if (location != _name::npos) when the _name is an std::string at the class level, just above the
inline function this is defined in.
What is happening, according to jamesd- on #c++ on efnet:
when seeing the :: form, it looks for a type on the left side of the ::, so it doesn't even look for
instances.
You can see the code here: http://darwinports.gene-hacker.net:8080/331 for the time being, as
long as it isn't cleared out.
--
Summary: wrong error when using instance of class to access
static var
Product: gcc
Version: 3.3
Status: UNCONFIRMED
Severity: minor
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: wackysteak at mac dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13164