[LLVMbugs] [Bug 23905] New: incomplete type diagnostic
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Jun 20 12:05:58 PDT 2015
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: unassignedclangbugs at nondot.org
Reporter: prathamesh.kulkarni at linaro.org
CC: llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150620/29da3551/attachment.html>
More information about the llvm-bugs
mailing list