[Bug c++/96720] ICE with* after include
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Aug 20 15:13:29 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96720
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-invalid-code
CC| |mpolacek at gcc dot gnu.org
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Heh. Confirmed:
q.C:1:29: warning: extra tokens at end of #include directive
1 | #include <range/v3/all.hpp> *
| ^
In file included from /usr/include/range/v3/view.hpp:25,
from /usr/include/range/v3/all.hpp:25,
from q.C:1:
/usr/include/range/v3/view/cartesian_product.hpp: In substitution of
‘template<class ... Views> template<bool IsConst_> template<class T> using
constify_if = meta::const_if_c<IsConst_, T> [with T =
ranges::cartesian_product_view<Views>; bool IsConst_ = IsConst_; Views = {Views
...}]’:
/usr/include/range/v3/view/cartesian_product.hpp:154:47: required from here
/usr/include/range/v3/view/cartesian_product.hpp:154:47: internal compiler
error: Segmentation fault
154 | constify_if<cartesian_product_view> * view_;
| ^
0x15a1c0a crash_signal
/home/mpolacek/src/gcc/gcc/toplev.c:327
0x7f1fe406da6f ???
/usr/src/debug/glibc-2.31-48-g64246fccaf/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
0x95f237 tree_class_check(tree_node*, tree_code_class, char const*, int, char
const*)
/home/mpolacek/src/gcc/gcc/tree.h:3417
0x9bca6c pop_nested_class()
/home/mpolacek/src/gcc/gcc/cp/class.c:8138
0xc4794b instantiate_template_1
/home/mpolacek/src/gcc/gcc/cp/pt.c:20826
0xc47f98 instantiate_template(tree_node*, tree_node*, int)
/home/mpolacek/src/gcc/gcc/cp/pt.c:20881
0xc48106 instantiate_alias_template
/home/mpolacek/src/gcc/gcc/cp/pt.c:20919
0xc29995 tsubst(tree_node*, tree_node*, int, tree_node*)
/home/mpolacek/src/gcc/gcc/cp/pt.c:15259
0xc0d5ad lookup_template_class_1
/home/mpolacek/src/gcc/gcc/cp/pt.c:9876
0xc0f688 lookup_template_class(tree_node*, tree_node*, tree_node*, tree_node*,
int, int)
/home/mpolacek/src/gcc/gcc/cp/pt.c:10159
0xc95b67 finish_template_type(tree_node*, tree_node*, int)
/home/mpolacek/src/gcc/gcc/cp/semantics.c:3446
0xb92d66 cp_parser_template_id
/home/mpolacek/src/gcc/gcc/cp/parser.c:16838
0xba0ad5 cp_parser_class_name
/home/mpolacek/src/gcc/gcc/cp/parser.c:23816
0xb7e345 cp_parser_qualifying_entity
/home/mpolacek/src/gcc/gcc/cp/parser.c:6844
0xb7d837 cp_parser_nested_name_specifier_opt
/home/mpolacek/src/gcc/gcc/cp/parser.c:6526
0xb7e0df cp_parser_nested_name_specifier
/home/mpolacek/src/gcc/gcc/cp/parser.c:6770
0xb98bdd cp_parser_using_declaration
/home/mpolacek/src/gcc/gcc/cp/parser.c:19956
0xba3a5a cp_parser_member_declaration
/home/mpolacek/src/gcc/gcc/cp/parser.c:25049
0xba3755 cp_parser_member_specification_opt
/home/mpolacek/src/gcc/gcc/cp/parser.c:24909
0xba152a cp_parser_class_specifier_1
/home/mpolacek/src/gcc/gcc/cp/parser.c:24006
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
More information about the Gcc-bugs
mailing list