http://llvm.org/bugs/show_bug.cgi?id=14993
Bug #: 14993
Summary: missing diagnostic for inline function which is used
but not defined
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
C++03 [basic.def.odr]p3 and C++11 [basic.def.odr]p4 say:
"An inline function shall be defined in every translation unit in which it is
used."
Clang does not enforce this rule.
Likewise, C99 6.7.4/6 and C11 6.7.4/7 say (in a Semantics section):
"For a function with external linkage, the following restrictions apply: If a
function is declared with an inline function specifier, then it shall also be
defined in the same translation unit."
Clang does not enforce this rule either.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs