[llvm-bugs] [Bug 44393] New: Wmissing-variable-declarations fires for static variable in module

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Dec 27 15:41:29 PST 2019


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: unassignedclangbugs at nondot.org
          Reporter: david at doublewise.net
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    neeilans at live.com, richard-llvm at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20191227/e239edd8/attachment-0001.html>


More information about the llvm-bugs mailing list