From: Jonathan Wakely <jwakely.gcc@gmail.com>
To: 3497650172 <3497650172@qq.com>
Cc: gcc-help <gcc-help@gcc.gnu.org>
Subject: Re: Inconsistency with C language standard
Date: Thu, 14 Oct 2021 07:38:15 +0100 [thread overview]
Message-ID: <CAH6eHdRB6WdVNQRrdEX71mAr0HnRk49USM_1JQvDV0rg5tMjzg@mail.gmail.com> (raw)
In-Reply-To: <tencent_E01234E0D1F551BE90AA70F2FDD043AAEE08@qq.com>
On Thu, 14 Oct 2021, 03:29 3497650172 via Gcc-help, <gcc-help@gcc.gnu.org>
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
next prev parent reply other threads:[~2021-10-14 6:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-14 2:28 3497650172
2021-10-14 6:38 ` Jonathan Wakely [this message]
2021-10-14 10:46 ` Xi Ruoyao
[not found] ` <tencent_7A3E0B9A44D54C42051CA77EC71741F55005@qq.com>
2021-10-14 15:24 ` 回复: " Xi Ruoyao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAH6eHdRB6WdVNQRrdEX71mAr0HnRk49USM_1JQvDV0rg5tMjzg@mail.gmail.com \
--to=jwakely.gcc@gmail.com \
--cc=3497650172@qq.com \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).