https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115109
--- Comment #11 from Jakub Jelinek ---
It is always good if you're testing on x86_64 to test such tests with
make check-gcc
RUNTESTFLAGS="--target_board=unix\{-m32/-mno-mmx/-mno-sse,-m32/-msse2,-m64\}
dg.exp='pr105109.c c23-tag-enum-*.c'"
or
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115109
--- Comment #10 from uecker at gcc dot gnu.org ---
Yeah, I looked at the CI before submitting and saw the three passing tests,
not realizing that the fourth was stilling running. I will fix this soon.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115109
Christophe Lyon changed:
What|Removed |Added
CC||clyon at gcc dot gnu.org
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115109
--- Comment #8 from GCC Commits ---
The master branch has been updated by Martin Uecker :
https://gcc.gnu.org/g:c9b96a68860bfdee49d40b4a844af7c5ef69cd12
commit r15-1394-gc9b96a68860bfdee49d40b4a844af7c5ef69cd12
Author: Martin Uecker
Date:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115109
--- Comment #7 from uecker at gcc dot gnu.org ---
PATCH v2
https://gcc.gnu.org/pipermail/gcc-patches/2024-May/652109.html
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115109
--- Comment #6 from uecker at gcc dot gnu.org ---
But it shows that the logic is still not right for the case where all the final
types should be int.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115109
--- Comment #5 from uecker at gcc dot gnu.org ---
Right, included the wrong test...
The conversion seems right, if we have a predefined type. For enums with fixed
underlying type we then have a constraint violation if the value does not fit.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115109
--- Comment #4 from Halalaluyafail3 ---
(In reply to Halalaluyafail3 from comment #3)
> enum E { a = 1L, b = _Generic(a, enum E: 2) }; /* { dg-warning "outside the
> range" } */
Seems like I copied this wrong, the comment should be a part of
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115109
--- Comment #3 from Halalaluyafail3 ---
(In reply to uecker from comment #2)
> PATCH: https://gcc.gnu.org/pipermail/gcc-patches/2024-May/652093.html
I'm confused about the tests added here:
> enum H { x = 1 };
> enum H { x = 2UL + UINT_MAX };
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115109
--- Comment #2 from uecker at gcc dot gnu.org ---
PATCH: https://gcc.gnu.org/pipermail/gcc-patches/2024-May/652093.html
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115109
Joseph S. Myers changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
CC|
11 matches
Mail list logo