[Bug c++/66061] New: Internal Compiler Error when specializing a variable template when the specialization is variadic
david at doublewise dot net
gcc-bugzilla@gcc.gnu.org
Fri May 8 01:48:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66061
Bug ID: 66061
Summary: Internal Compiler Error when specializing a variable
template when the specialization is variadic
Product: gcc
Version: 5.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: david at doublewise dot net
Target Milestone: ---
main.cpp:
template<int...>
int x = 1;
template<int n, int... m>
int x<n, m...> = 1;
david@i5-fedora ~/test> g++ source/main.cpp -c -std=c++14
source/main.cpp:5:5: internal compiler error: in
process_partial_specialization, at cp/pt.c:4248
int x<n, m...> = 1;
^
0x63102e process_partial_specialization
../../gcc/gcc/cp/pt.c:4248
0x631517 push_template_decl_real(tree_node*, bool)
../../gcc/gcc/cp/pt.c:4892
0x60820f start_decl(cp_declarator const*, cp_decl_specifier_seq*, int,
tree_node*, tree_node*, tree_node**)
../../gcc/gcc/cp/decl.c:4832
0x67e266 cp_parser_init_declarator
../../gcc/gcc/cp/parser.c:17170
0x67ee14 cp_parser_single_declaration
../../gcc/gcc/cp/parser.c:23811
0x67f0b8 cp_parser_template_declaration_after_export
../../gcc/gcc/cp/parser.c:23602
0x661f79 cp_parser_declaration
../../gcc/gcc/cp/parser.c:11342
0x688a3a cp_parser_declaration_seq_opt
../../gcc/gcc/cp/parser.c:11264
0x688d4f cp_parser_translation_unit
../../gcc/gcc/cp/parser.c:4100
0x688d4f c_parse_file()
../../gcc/gcc/cp/parser.c:33192
0x73b692 c_common_parse_file()
../../gcc/gcc/c-family/c-opts.c:1057
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
More information about the Gcc-bugs
mailing list