This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/80172] New: Segfault when using a constructed intializer list of tuple(int, variant) created through template pack expansion
- From: "gcc-bugs at marehr dot dialup.fu-berlin.de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 24 Mar 2017 12:49:42 +0000
- Subject: [Bug libstdc++/80172] New: Segfault when using a constructed intializer list of tuple(int, variant) created through template pack expansion
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80172
Bug ID: 80172
Summary: Segfault when using a constructed intializer list of
tuple(int, variant) created through template pack
expansion
Product: gcc
Version: 7.0.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de
Target Milestone: ---
Created attachment 41044
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41044&action=edit
example source code that triggers segfault
Hi gcc-team,
the attached source code compiles, but will terminate with a segfault when
executed.
> g++-7 -std=gnu++1z -Wall -Wextra bug_gcc_tuple_of_variant_in_pack_expansion.cpp
> ./a.out
0. 4
1. 5
2. 1
A
N
-
0. A
1. N
2. -
zsh: segmentation fault (core dumped) ./a.out
best regards
marehr