https://llvm.org/bugs/show_bug.cgi?id=23905
Bug ID: 23905
Summary: incomplete type diagnostic
Product: clang
Version: 3.6
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Hi,
For the following case, clang gives error for struct but not for enum:
extern struct foo s;
extern enum bar b;
int main()
{
(void) s;
(void) b;
}
f1.c:9:10: error: incomplete type 'struct foo' where a complete type is
required
(void) s;
^
f1.c:1:8: note: forward declaration of 'struct foo'
struct foo;
^
1 error generated.
Is this possibly a bug ?
clang --version:
Ubuntu clang version 3.6.0-2ubuntu1 (tags/RELEASE_360/final) (based on LLVM
3.6.0)
Target: x86_64-pc-linux-gnu
Thread model: posix
Thank you,
Prathamesh
--
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