[Bug c++/51912] [C++11] G++ accepts floating point case labels
paolo.carlini at oracle dot com
gcc-bugzilla@gcc.gnu.org
Tue May 29 14:02:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51912
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |paolo.carlini at oracle dot
| |com
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-05-29 13:58:21 UTC ---
Jason, I'm thinking that this should be doable rather easily by adding a new
LOOKUP_NO_NON_INTEGRAL mask and passing it down to standard_conversion from
case_conversion via perform_implicit_conversion_flags.
Then standard_conversion can exclude all such non-integral conversions, eg, for
this specific testcase, return NULL from line #1332 because fcode == REALTYPE
&& (flags & LOOKUP_NO_NON_INTEGRAL)).
Makes sense?
More information about the Gcc-bugs
mailing list