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: [email protected]
ReportedBy: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs