public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/89287] Array declaration fails to use template conversion operator
       [not found] <bug-89287-4@http.gcc.gnu.org/bugzilla/>
@ 2021-08-27 21:53 ` pinskia at gcc dot gnu.org
  2021-08-27 21:59 ` [Bug c++/89287] [n3323] " pinskia at gcc dot gnu.org
  2021-08-27 22:07 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-27 21:53 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2021-08-27
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.  Looks like C++14 changed it to do a conversion to size_t.

Obvious workaround:
new char[(size_t)S()];

The other thing I noticed is ICC accepts it for C++11 while rejects it for
C++98 which is unlike clang which rejects it for both C++98 and C++11.

There must have been a C++ defect report ...

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/89287] [n3323] Array declaration fails to use template conversion operator
       [not found] <bug-89287-4@http.gcc.gnu.org/bugzilla/>
  2021-08-27 21:53 ` [Bug c++/89287] Array declaration fails to use template conversion operator pinskia at gcc dot gnu.org
@ 2021-08-27 21:59 ` pinskia at gcc dot gnu.org
  2021-08-27 22:07 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-27 21:59 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Array declaration fails to  |[n3323] Array declaration
                   |use template conversion     |fails to use template
                   |operator                    |conversion operator

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Looks like n3323 was never implemented.

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3323.pdf

Also note there is DR 1464 too.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/89287] [n3323] Array declaration fails to use template conversion operator
       [not found] <bug-89287-4@http.gcc.gnu.org/bugzilla/>
  2021-08-27 21:53 ` [Bug c++/89287] Array declaration fails to use template conversion operator pinskia at gcc dot gnu.org
  2021-08-27 21:59 ` [Bug c++/89287] [n3323] " pinskia at gcc dot gnu.org
@ 2021-08-27 22:07 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-27 22:07 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Looks like only part of n3323 was implemented.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-08-27 22:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-89287-4@http.gcc.gnu.org/bugzilla/>
2021-08-27 21:53 ` [Bug c++/89287] Array declaration fails to use template conversion operator pinskia at gcc dot gnu.org
2021-08-27 21:59 ` [Bug c++/89287] [n3323] " pinskia at gcc dot gnu.org
2021-08-27 22:07 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).