[LLVMbugs] [Bug 10977] New: clang misses inline functions in compile+link
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Sep 21 06:00:26 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=10977
Summary: clang misses inline functions in compile+link
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: contact at philipashmore.com
CC: llvmbugs at cs.uiuc.edu
Here's a simple test case <<EOF
inline int test()
{
return 1;
}
int main(int argc, char *argv[])
{
return test();
}
EOF
$ clang -o inline-test inline-test.c
/tmp/inline-test-dUFw7B.o: In function `main':
inline-test.c:(.text+0x19): undefined reference to `test'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
$ clang -v
clang version 3.0 (trunk 140008)
Target: x86_64-unknown-linux-gnu
Thread model: posix
--
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