https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119058

--- Comment #3 from Alejandro Colomar <alx at kernel dot org> ---
(In reply to Andrew Pinski from comment #2)
> Plus why not just use casts?

They tend to be dangerous when misplaced or when their type is accidentally
wrong.


For example, the following could be diagnosed with a suffix, but not with a
cast:

    10wb3;  // doesn't fit the type
    (_BitInt(3)) 10wb;  // valid narrowing conversion(In reply to Andrew Pinski
from comment #1)


> Is there a proposed C paper for this?

Not yet.  I commented it yesterday with Aaron Ballman during a break in the
C Committee meeting, and he was in support for this.  So, my intention was to
propose this feature first as an extension in GNU C (where _ExtInt() was born),
and later propose it for standardization.

> Do you have edits that could be applied to the C23 standard to support this?

If you'd like me to prepare an N paper with a diff to the C2y standard to make
it more clear what I'm asking to do, I could.  But I prefer not proposing for
standardization before having it in GNU C; it would be incoherent with my
opinion that the standard should not be inventing.  So, I'll call the document
GNU119058r0, to be clear that it's not officially proposed at the moment, and
to
not waste an N number for something not proposed.

Reply via email to