[Bug 268820] index C++ variable overloading

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 07 Jan 2023 21:15:16 UTC
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: standards@FreeBSD.org
          Reporter: cppleo@ya.ru

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.