[Bug c++/93862] [10 Regression] ICE on static_cast of rvalue-reference-to-array of unknown bound [P0338] to its known static bound

2020-02-26 Thread wjwray at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93862 --- Comment #8 from Will Wray --- OK. I'll try to get full confirmation and clarification on legality, with links to wording if possible, then open a new bug if valid.

[Bug c++/93862] [10 Regression] ICE on static_cast of rvalue-reference-to-array of unknown bound [P0338] to its known static bound

2020-02-26 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93862 --- Comment #7 from Marek Polacek --- Oof, curious. Could you please create a new PR for that?

[Bug c++/93862] [10 Regression] ICE on static_cast of rvalue-reference-to-array of unknown bound [P0338] to its known static bound

2020-02-26 Thread wjwray at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93862 --- Comment #6 from Will Wray --- Thanks for the quick work. However, I'm not sure that (2) and (3) _are_ invalid. (Sorry, I didn't have time to follow the email thread). I should have provided this link to an exchange with Richard Smith. I'd

[Bug c++/93862] [10 Regression] ICE on static_cast of rvalue-reference-to-array of unknown bound [P0338] to its known static bound

2020-02-26 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93862 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/93862] [10 Regression] ICE on static_cast of rvalue-reference-to-array of unknown bound [P0338] to its known static bound

2020-02-26 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93862 --- Comment #4 from CVS Commits --- The master branch has been updated by Marek Polacek : https://gcc.gnu.org/g:4a305fa2fd4c9d553b26efa00f868aa1e4416a9f commit r10-6867-g4a305fa2fd4c9d553b26efa00f868aa1e4416a9f Author: Marek Polacek Date:

[Bug c++/93862] [10 Regression] ICE on static_cast of rvalue-reference-to-array of unknown bound [P0338] to its known static bound

2020-02-24 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93862 --- Comment #3 from Marek Polacek --- I have a patch but both (2) and (3) are invalid, see . (icc also rejects it.)

[Bug c++/93862] [10 Regression] ICE on static_cast of rvalue-reference-to-array of unknown bound [P0338] to its known static bound

2020-02-20 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93862 --- Comment #2 from Marek Polacek --- In build_static_cast_1: 7397 tree lref = cp_build_reference_type (TREE_TYPE (type), false); 7398 result = (perform_direct_initialization_if_possible 7399 (lref,

[Bug c++/93862] [10 Regression] ICE on static_cast of rvalue-reference-to-array of unknown bound [P0338] to its known static bound

2020-02-20 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93862 Marek Polacek changed: What|Removed |Added Priority|P3 |P1 Status|UNCONFIRMED