This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
case ranges in C++ (extension)
- From: Michael Matz <matz at suse dot de>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 27 Jan 2004 17:54:55 +0100 (CET)
- Subject: case ranges in C++ (extension)
Hi Mark,
GCC up to 3.3 accepted this:
switch (i) {
case 1 ... 10: /* bla */
}
also in C++. This extension was dropped with the new parser. I don't
know if knowingly, but at least I don't find any deprecation messages. C
still accepts it. Would reimplementing this be accepted?
Ciao,
Michael.