[LLVMbugs] [Bug 14993] New: missing diagnostic for inline function which is used but not defined
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Jan 18 13:08:44 PST 2013
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: unassignedclangbugs at nondot.org
ReportedBy: richard-llvm at metafoo.co.uk
CC: llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list