[Bug 268820] index C++ variable overloading

[email protected]
Newsgroups gmane.os.freebsd.devel.standards
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268820

            Bug ID: 268820
           Summary: index C++ variable overloading
           Product: Base System
           Version: 13.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: standards
          Assignee: [email protected]
          Reporter: [email protected]

The STL <string> header require strings.h header. In this header you can see
index variable. Variable can't be named without `_` in STL by C++ Standards. 
I can't compile my C++ project, because I use `index` variable too.

So, file `1.cpp`:
```
#include <string>

std::string index;

int main() {

}
```

Compile:
c++ 1.cpp


And I've got an error!

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.