From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by sourceware.org (Postfix) with ESMTPS id BC75A3858D1E for ; Wed, 19 Apr 2023 11:41:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BC75A3858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-x236.google.com with SMTP id y24so6078764ljm.6 for ; Wed, 19 Apr 2023 04:41:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681904469; x=1684496469; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=kvLV9UKdWmL6dX0ew0gYIsdBlGsItaev/74Y12s8k2U=; b=pnzx8HuUZCVBNwU3cIAB8aJmY99QaLlfeRbfhBsqALStFQr480ww+Hz6NrWthSa2CW fY8z/SYVw6hBCu2fpInghMlspEeBlMp4JbFg7Nq9NbX+9NXlIUCJP0Jmlzx0V0TCKyJJ iLaLyjTQi6EKTUxL1CnzawPIFQl9zfIMghi0w8SsWXtbRjRxHcTRGR3E7rjBqqGSxXIg dDQYft+WnSM1emnMpOp4ZoRVwOa3EeBKVrMokyNeeDLW6HIM7AYTzdrar9xMX32sVfii dwqDDJXVe8XYrPAdo2KJHdJzsTM4unW+uTWYql30voDvoHeImN3+aMbCy2/J2JZPqIc/ p8lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681904469; x=1684496469; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=kvLV9UKdWmL6dX0ew0gYIsdBlGsItaev/74Y12s8k2U=; b=H57/he+L+kgMpAmlyKNzxerSPVoFr0PdH/QBTjSX0u9AwnM8UBJqxka16ZU4kQoYpG pgCsbN2U5a9WEGfIY8GzT3s7lZ9IEz4lJjRRnrDLkzvnawswrUcEvY8Y5WAmBJOLFA1U hjYky6PqTjkmEzj14G/b2EEhcbdZB727VAlcRnoJcqcvGK4muXZAHMmYvIETai2XPfiS +5/IfL9Zo9HR7F6GwfYmDhvxe/NP0hcINcUDdoD3VKFFppq0ltqkogMiShDh5kZIcNTk UhMDkraz54+uiFDUu4HjgWQIVtme+cLUU+c+D3Oly6W3hZal0kcmaNlhHZS4DTw410g0 McOQ== X-Gm-Message-State: AAQBX9eyIqY2DoXB6XuE5MbZBfcKQfKJuW8M4EL/XMOvXpiAO5EsxRUE f4v9eRFN8fk/F4o335kBloLrK0bapFOjBRngrT49PTniahBFWQ== X-Google-Smtp-Source: AKy350axAKTXjbOus3WCvSU4nQKnxrLLat8OnR5faoj5XFPjVzL4u7tPbeet04HB31/IvxotKb/vVLdxThn01G7hdN4= X-Received: by 2002:a2e:a906:0:b0:2a8:e629:292 with SMTP id j6-20020a2ea906000000b002a8e6290292mr906927ljq.3.1681904468778; Wed, 19 Apr 2023 04:41:08 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Andy Date: Wed, 19 Apr 2023 13:40:57 +0200 Message-ID: Subject: Re: How to explain this syntax? To: gcc-help@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: I meet odd struct + colon syntax: in gcc/gcc/testsuite/gcc.c-torture/compile/init-3.c is struct something X = { foo: { }, bar: 1, }; bar:1 is one bit field? what means foo? is the same as struct empty foo; where struct empty { }; colon is not only reserved to bitfields? Second (init-2.c): initializer struct { int e1, e2; } v = { e2: 0 }; why not e2=0, colon instead of assign operator?