[llvm-bugs] [Bug 41682] New: C11 anonymous struct not liked
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Apr 30 22:51:46 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=41682
Bug ID: 41682
Summary: C11 anonymous struct not liked
Product: clang
Version: 7.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: tydeman at tybor.com
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
neeilans at live.com, richard-llvm at metafoo.co.uk
This code, which I believe is valid C11 code, is not accepted.
struct a {
int y;
}; /* anonymous */
struct b {
int x;
struct a;
int z;
};
static struct b c = { 20, 30, 50 };
static struct b d = { .z=5, .x=2, .y=3 };
--
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/20190501/f26cba5d/attachment.html>
More information about the llvm-bugs
mailing list