This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
That conversion is unspecified in C++, as others have said.Could one of GCC's resident C/C++ language lawyers confirm that the behaviour of the following code is undefined?
extern "C" void abort(void);
enum E { e = 0x0f };
void test(int n) { enum E x, y;
x = (E)0x10;
-- Mark Mitchell CodeSourcery, LLC (916) 791-8304 mark@codesourcery.com
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |