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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
"
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._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs