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]
Other format: [Raw text]

[Bug c++/13164] New: wrong error when using instance of class to access static var


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


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