https://bugs.llvm.org/show_bug.cgi?id=44393

            Bug ID: 44393
           Summary: Wmissing-variable-declarations fires for static
                    variable in module
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangb...@nondot.org
          Reporter: da...@doublewise.net
                CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org,
                    neeil...@live.com, richard-l...@metafoo.co.uk

The following translation unit:


```
export module foo;

namespace {

static constexpr int x = 5;

} // namespace
```

warns when compiled with `clang++ -std=c++2a -Wmissing-variable-declarations`

See it live: https://godbolt.org/z/YBPr-b

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to