[Bug libstdc++/80172] New: Segfault when using a constructed intializer list of tuple(int, variant) created through template pack expansion
gcc-bugs at marehr dot dialup.fu-berlin.de
gcc-bugzilla@gcc.gnu.org
Fri Mar 24 12:49:00 GMT 2017
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
More information about the Gcc-bugs
mailing list