public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/95579] New: internal compiler error: in sign_mask, at wide-int.h:855
@ 2020-06-08 15:11 nmmm at nmmm dot nu
2020-06-08 15:13 ` [Bug c++/95579] " nmmm at nmmm dot nu
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: nmmm at nmmm dot nu @ 2020-06-08 15:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95579
Bug ID: 95579
Summary: internal compiler error: in sign_mask, at
wide-int.h:855
Product: gcc
Version: 10.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: nmmm at nmmm dot nu
Target Milestone: ---
https://gcc.godbolt.org/z/5Dfous
#include <cstdint>
uint16_t byteswap(uint16_t const a){
constexpr uint8_t b[] = {
8 * (2 - 1)
};
auto const x =
(0x00ffULL & a) << b[0] |
(0xff00ULL & a) >> b[0]
;
return static_cast<uint16_t>(x);
}
------------------
<source>: In function 'uint16_t byteswap(uint16_t)':
<source>:12:25: internal compiler error: in sign_mask, at wide-int.h:855
12 | (0xff00ULL & a) >> b[0]
| ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
Compiler returned: 1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/95579] internal compiler error: in sign_mask, at wide-int.h:855
2020-06-08 15:11 [Bug c++/95579] New: internal compiler error: in sign_mask, at wide-int.h:855 nmmm at nmmm dot nu
@ 2020-06-08 15:13 ` nmmm at nmmm dot nu
2020-06-08 16:55 ` [Bug c++/95579] [10/11 Regression] " jakub at gcc dot gnu.org
2020-06-08 16:59 ` [Bug c++/95579] [10 " jakub at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: nmmm at nmmm dot nu @ 2020-06-08 15:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95579
--- Comment #1 from Nikolay Mihaylov <nmmm at nmmm dot nu> ---
Code compiles on 9.x
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/95579] [10/11 Regression] internal compiler error: in sign_mask, at wide-int.h:855
2020-06-08 15:11 [Bug c++/95579] New: internal compiler error: in sign_mask, at wide-int.h:855 nmmm at nmmm dot nu
2020-06-08 15:13 ` [Bug c++/95579] " nmmm at nmmm dot nu
@ 2020-06-08 16:55 ` jakub at gcc dot gnu.org
2020-06-08 16:59 ` [Bug c++/95579] [10 " jakub at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-06-08 16:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95579
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Target Milestone|--- |10.2
CC| |jakub at gcc dot gnu.org
Priority|P3 |P2
Summary|internal compiler error: in |[10/11 Regression] internal
|sign_mask, at |compiler error: in
|wide-int.h:855 |sign_mask, at
| |wide-int.h:855
Last reconfirmed| |2020-06-08
Status|UNCONFIRMED |NEW
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r10-6527-gaaa26bf496a646778ac861aed124d960b5bf549f
Reduced testcase:
unsigned short
foo (unsigned short a)
{
constexpr unsigned char b[1] = { 15 };
return (0x00ffU & a) << b[0] | (0xff00U & a) >> b[0];
}
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/95579] [10 Regression] internal compiler error: in sign_mask, at wide-int.h:855
2020-06-08 15:11 [Bug c++/95579] New: internal compiler error: in sign_mask, at wide-int.h:855 nmmm at nmmm dot nu
2020-06-08 15:13 ` [Bug c++/95579] " nmmm at nmmm dot nu
2020-06-08 16:55 ` [Bug c++/95579] [10/11 Regression] " jakub at gcc dot gnu.org
@ 2020-06-08 16:59 ` jakub at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-06-08 16:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95579
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Summary|[10/11 Regression] internal |[10 Regression] internal
|compiler error: in |compiler error: in
|sign_mask, at |sign_mask, at
|wide-int.h:855 |wide-int.h:855
Resolution|--- |DUPLICATE
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Ah, it has been fixed on the trunk already in
r11-474-g2d4e1e144c25e526e4f668be5a0bc10d0c1c738c
*** This bug has been marked as a duplicate of bug 94955 ***
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-06-08 16:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-08 15:11 [Bug c++/95579] New: internal compiler error: in sign_mask, at wide-int.h:855 nmmm at nmmm dot nu
2020-06-08 15:13 ` [Bug c++/95579] " nmmm at nmmm dot nu
2020-06-08 16:55 ` [Bug c++/95579] [10/11 Regression] " jakub at gcc dot gnu.org
2020-06-08 16:59 ` [Bug c++/95579] [10 " jakub 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).