[Bug c/88532] New: variable has initializer but incomplete type
sasho648 at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Dec 17 19:51:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88532
Bug ID: 88532
Summary: variable has initializer but incomplete type
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: sasho648 at gmail dot com
Target Milestone: ---
Consider the following snippet:
main()
{
struct t a = (sizeof(struct t { }), a);
}
It currently fails with variable 'a' has initializer but incomplete type. The
above code works fine with clang.
More information about the Gcc-bugs
mailing list