[Bug c++/13164] New: wrong error when using instance of class to access static var
wackysteak at mac dot com
gcc-bugzilla@gcc.gnu.org
Sun Nov 23 07:25:00 GMT 2003
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
More information about the Gcc-bugs
mailing list