public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/109459] New: static_assert with operator""s causes internal compiler error
@ 2023-04-10 2:25 stevenxia990430 at gmail dot com
2023-04-10 2:56 ` [Bug c++/109459] " de34 at live dot cn
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: stevenxia990430 at gmail dot com @ 2023-04-10 2:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109459
Bug ID: 109459
Summary: static_assert with operator""s causes internal
compiler error
Product: gcc
Version: 12.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: stevenxia990430 at gmail dot com
Target Milestone: ---
The following program reports an internal compiler error: Segmentation fault
To quickly reproduce: https://gcc.godbolt.org/z/T6E8Tb7ff
```
#include <string_view>
#include <iostream>
int main()
{
using namespace std::literals;
int x = 0;
static_assert(std::is_void_v<std::decay_t<decltype(x)>>, "Cannot process
pair."s);
return 0;
}
```
Removing the operator""s removes the internal compiler error.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/109459] static_assert with operator""s causes internal compiler error
2023-04-10 2:25 [Bug c++/109459] New: static_assert with operator""s causes internal compiler error stevenxia990430 at gmail dot com
@ 2023-04-10 2:56 ` de34 at live dot cn
2023-04-10 7:24 ` jakub at gcc dot gnu.org
2023-04-10 17:32 ` stevenxia990430 at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: de34 at live dot cn @ 2023-04-10 2:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109459
Jiang An <de34 at live dot cn> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |de34 at live dot cn
--- Comment #1 from Jiang An <de34 at live dot cn> ---
Seems fixed recently:
https://gcc.godbolt.org/z/zTWoT4rsY
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/109459] static_assert with operator""s causes internal compiler error
2023-04-10 2:25 [Bug c++/109459] New: static_assert with operator""s causes internal compiler error stevenxia990430 at gmail dot com
2023-04-10 2:56 ` [Bug c++/109459] " de34 at live dot cn
@ 2023-04-10 7:24 ` jakub at gcc dot gnu.org
2023-04-10 17:32 ` stevenxia990430 at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: jakub at gcc dot gnu.org @ 2023-04-10 7:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109459
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |DUPLICATE
CC| |jakub at gcc dot gnu.org
Status|UNCONFIRMED |RESOLVED
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Indeed.
*** This bug has been marked as a duplicate of bug 105300 ***
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/109459] static_assert with operator""s causes internal compiler error
2023-04-10 2:25 [Bug c++/109459] New: static_assert with operator""s causes internal compiler error stevenxia990430 at gmail dot com
2023-04-10 2:56 ` [Bug c++/109459] " de34 at live dot cn
2023-04-10 7:24 ` jakub at gcc dot gnu.org
@ 2023-04-10 17:32 ` stevenxia990430 at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: stevenxia990430 at gmail dot com @ 2023-04-10 17:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109459
--- Comment #3 from Steven Xia <stevenxia990430 at gmail dot com> ---
(In reply to Jakub Jelinek from comment #2)
> Indeed.
>
> *** This bug has been marked as a duplicate of bug 105300 ***
Thanks for the pointers and sorry for the confusion, will check against trunk
next time for any bug reports.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-04-10 17:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-10 2:25 [Bug c++/109459] New: static_assert with operator""s causes internal compiler error stevenxia990430 at gmail dot com
2023-04-10 2:56 ` [Bug c++/109459] " de34 at live dot cn
2023-04-10 7:24 ` jakub at gcc dot gnu.org
2023-04-10 17:32 ` stevenxia990430 at gmail dot com
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).