1 msgProblem installing gcc-2.96+ or gcc 4.2 beta in...
1 msgKeo Souvannasy est absent(e).
2 msg-g vs -g3 -ggdb3
2 msgProblems properly escaping backslashes in dos p...
6 msgNew -ffriend-injection behavior - is it really ...
1 msgautovectorization capabilities
10 msgwhere to discuss problems with IEEE 754 standar...
1 msgDebugging OpenMP with gcc 4.2 and gdb 6.6
5 msg4.2.0 installation problem - `bison' missing on...

cast to an enum does not throw errors even for ...
\ Shriramana Sharma (22 May 2007)
. \ John Love-Jensen (22 May 2007)
. . \ Shriramana Sharma (28 May 2007)
. . . \ John Love-Jensen (28 May 2007)
. . . . \ Gabriel Dos Reis (29 May 2007)
. . \ Sergei Organov (28 May 2007)
. \ Shriramana Sharma (25 May 2007)
. . \ Ian Lance Taylor (25 May 2007)
. . \ Young, Michael (25 May 2007)

2 msgEnabling basic block profiling information
1 msghelp writing gcc code
1 msg***JOB OFFER
1 msgQuestion on object code layout
5 msgRe: Problem when using optimization on aix 5.2 ...
2 msgPRECISE gcc Intel conventions
1 msgFriendly gcc hacker needed
2 msgBuilding GCC for 64-bit architecture
1 msgListing of inlined functions
5 msggcc behind the scenes
Subject:Re: cast to an enum does not throw errors even for invalid values
Group:Gcc-help
From:Gabriel Dos Reis
Date:29 May 2007


John Love-Jensen <eljay> 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


© 2004-2008 readlist.com