public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Gabriel Dos Reis <gdr@cs.tamu.edu>
To: John Love-Jensen <eljay@adobe.com>
Cc: Shriramana Sharma <samjnaa@gmail.com>,
	 MSX to GCC <gcc-help@gcc.gnu.org>
Subject: Re: cast to an enum does not throw errors even for invalid values
Date: Tue, 29 May 2007 11:05:00 -0000	[thread overview]
Message-ID: <87abvopjci.fsf@soliton.cs.tamu.edu> (raw)
In-Reply-To: <C280D256.2233A%eljay@adobe.com>

John Love-Jensen <eljay@adobe.com> writes:

[...]

| > I feel GCC can implement the same for enum-s too.
| 
| GCC cannot implement the same for enum's too, because then the resulting
| language would be not-C++, which is not in the best interest of GNU and GCC.

[...]

| But if you want to pursue introducing a feature request to C++, please
| contact ISO/IEC JTC1/SC22/WG21 The C++ Standards Committee:
| 
| http://www.open-std.org/jtc1/sc22/wg21/

It's worth pointing out that enums will be "improved" in C++0x:

  http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2007/n2213.pdf

That is now part of the draft standard.  I believe Shriramana's issue
is addressed.  

-- Gaby

  reply	other threads:[~2007-05-29  0:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-22 13:00 Shriramana Sharma
2007-05-22 17:09 ` John Love-Jensen
2007-05-28 14:17   ` Shriramana Sharma
2007-05-28 17:33     ` Sergei Organov
2007-05-29  0:23     ` John Love-Jensen
2007-05-29 11:05       ` Gabriel Dos Reis [this message]
2007-05-25 11:26 Shriramana Sharma
2007-05-25 14:38 ` Ian Lance Taylor
2007-05-25 16:54 ` Young, Michael

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=87abvopjci.fsf@soliton.cs.tamu.edu \
    --to=gdr@cs.tamu.edu \
    --cc=eljay@adobe.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=samjnaa@gmail.com \
    /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).