From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by sourceware.org (Postfix) with ESMTPS id BFFD53858D39 for ; Thu, 14 Oct 2021 06:38:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BFFD53858D39 Received: by mail-wr1-x434.google.com with SMTP id g25so16029137wrb.2 for ; Wed, 13 Oct 2021 23:38:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=RYFbniNWCY0cel1AKY48JgMP+kLmEw32kPA1WzShOcQ=; b=ADfPaS5E009kmfW8kwVvPOTHl1+9r75YU+pMR+ve64A5kLnq0Asd9WNMdBIAdxOX12 XYuU1JYQZOK/b8SjIw3Sdg2otDJuazSuVuKRF+Nfr4iff8LKKT5rklquMg3uqqeZzgnE Mb/EYfsTOnaJPYc2faEuepwSvI1zse10EJ2h0HSZIdQHeXnaRmMIoBNbPDcnhWyl+u7c DmZX4/EOCQvtEOgih4nfIRtt04L+WL0bKS2em3igL8I/UaFyybNXYcnTNhGZVUG3AAaO u6vQ47oXBUlxgpgZoX5afnYev2/aowwquOAIX2kbNjDn+G+vY0RSwVZRV35o6siVzeX4 tFsg== X-Gm-Message-State: AOAM532Cnq16U0HowfUArrx4p5kcUQu0PhCMhdyWJFyctD6XDO8v2AeM TGAlccWF64zCQ/CLtCFT/azPQmlu3cZNl+rP/Gw= X-Google-Smtp-Source: ABdhPJx+VsVty6gigd0QY84HgXnUVab/ivFyBns+ncfj3YrckSNOz+Z4pGhz1VAVNzp5RU0q0XXscvksnZnOERU0R+g= X-Received: by 2002:a5d:4481:: with SMTP id j1mr4780852wrq.6.1634193506810; Wed, 13 Oct 2021 23:38:26 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Wakely Date: Thu, 14 Oct 2021 07:38:15 +0100 Message-ID: Subject: Re: Inconsistency with C language standard To: 3497650172 <3497650172@qq.com> Cc: gcc-help X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Oct 2021 06:38:29 -0000 On Thu, 14 Oct 2021, 03:29 3497650172 via Gcc-help, wrote: > The C language standard specifies that the "enum" constant is of type int, > but GCC supports all integers.And i did not find this discrepancy in the > official manual. There is not discrepancy, GCC conforms to the standard. It is documented at https://gcc.gnu.org/onlinedocs/gcc/Structures-unions-enumerations-and-bit-fields-implementation.html Did I not find it or did the official website document not explain it at > all? You didn't find it. How do I know all the differences? Read the manual https://gcc.gnu.org/onlinedocs/gcc/C-Implementation.html