[llvm-bugs] [Bug 49633] New: We should probably warn at how 'static inline' variables are odd at namespace scope.
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Mar 18 11:09:15 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=49633
Bug ID: 49633
Summary: We should probably warn at how 'static inline'
variables are odd at namespace scope.
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++17
Assignee: unassignedclangbugs at nondot.org
Reporter: erich.keane at intel.com
CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk
"
static inline int A;
"
seems a little silly, as 'inline' means 'make this definition mergeable', and
static means 'this is a unique definition'. It seems that some sort of warning
that questions why someone would do this is valuable.
--
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/20210318/5b866590/attachment.html>
More information about the llvm-bugs
mailing list