https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79500
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-02-14
CC| |msebor at gcc dot gnu.org
Summary|non-template deduction |[7 Regression] [c++1z]
|guides cause crash |non-template deduction
| |guides cause crash
Ever confirmed|0 |1
--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed. It's a recent regression but I don't have access to the binaries to
bisect it.
$ gcc -S -Wall -std=c++1z t.C
t.C:4:8: internal compiler error: tree check: expected template_decl, have
function_decl in do_class_deduction, at cp/pt.c:25096
A a = {};
^
0x14cf5c5 tree_check_failed(tree_node const*, char const*, int, char const*,
...)
/src/gcc/svn/gcc/tree.c:9815
0x7c7c14 tree_check(tree_node*, char const*, int, char const*, tree_code)
/src/gcc/svn/gcc/tree.h:3064
0x8c0fdb do_class_deduction
/src/gcc/svn/gcc/cp/pt.c:25096
0x8c188a do_auto_deduction(tree_node*, tree_node*, tree_node*, int,
auto_deduction_context, tree_node*, int)
/src/gcc/svn/gcc/cp/pt.c:25178
0x8137f2 cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int)
/src/gcc/svn/gcc/cp/decl.c:6825
0x95c60a cp_parser_init_declarator
/src/gcc/svn/gcc/cp/parser.c:19399
0x950808 cp_parser_simple_declaration
/src/gcc/svn/gcc/cp/parser.c:12802
0x9503ac cp_parser_block_declaration
/src/gcc/svn/gcc/cp/parser.c:12620
0x95012f cp_parser_declaration
/src/gcc/svn/gcc/cp/parser.c:12517
0x94fc81 cp_parser_declaration_seq_opt
/src/gcc/svn/gcc/cp/parser.c:12393
0x93e93f cp_parser_translation_unit
/src/gcc/svn/gcc/cp/parser.c:4366
0x98ed41 c_parse_file()
/src/gcc/svn/gcc/cp/parser.c:38427
0xb3b437 c_common_parse_file()
/src/gcc/svn/gcc/c-family/c-opts.c:1107
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.