This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/81257] New: ICE on invalid C++ template code: in make_typename_type, at cp/decl.c:3709
- From: "su at cs dot ucdavis.edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 30 Jun 2017 05:23:13 +0000
- Subject: [Bug c++/81257] New: ICE on invalid C++ template code: in make_typename_type, at cp/decl.c:3709
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81257
Bug ID: 81257
Summary: ICE on invalid C++ template code: in
make_typename_type, at cp/decl.c:3709
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: su at cs dot ucdavis.edu
Target Milestone: ---
$ g++-trunk -v
Using built-in specs.
COLLECT_GCC=g++-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/8.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-source-trunk/configure --enable-languages=c,c++,lto
--prefix=/usr/local/gcc-trunk --disable-bootstrap
Thread model: posix
gcc version 8.0.0 20170630 (experimental) [trunk revision 249826] (GCC)
$
$ g++-trunk -c small.cpp
small.cpp:1:40: internal compiler error: in make_typename_type, at
cp/decl.c:3709
template < typename ::template A < int > >;
^
0x752568 make_typename_type(tree_node*, tree_node*, tag_types, int)
../../gcc-source-trunk/gcc/cp/decl.c:3709
0x7fea55 cp_parser_elaborated_type_specifier
../../gcc-source-trunk/gcc/cp/parser.c:17534
0x7e9d57 cp_parser_type_specifier
../../gcc-source-trunk/gcc/cp/parser.c:16621
0x7fd7ef cp_parser_decl_specifier_seq
../../gcc-source-trunk/gcc/cp/parser.c:13494
0x7f61c5 cp_parser_parameter_declaration
../../gcc-source-trunk/gcc/cp/parser.c:21338
0x805516 cp_parser_template_parameter
../../gcc-source-trunk/gcc/cp/parser.c:15281
0x805516 cp_parser_template_parameter_list
../../gcc-source-trunk/gcc/cp/parser.c:14871
0x809671 cp_parser_explicit_template_declaration
../../gcc-source-trunk/gcc/cp/parser.c:26735
0x809671 cp_parser_template_declaration_after_export
../../gcc-source-trunk/gcc/cp/parser.c:26769
0x813b69 cp_parser_declaration
../../gcc-source-trunk/gcc/cp/parser.c:12609
0x812734 cp_parser_declaration_seq_opt
../../gcc-source-trunk/gcc/cp/parser.c:12536
0x812a78 cp_parser_translation_unit
../../gcc-source-trunk/gcc/cp/parser.c:4386
0x812a78 c_parse_file()
../../gcc-source-trunk/gcc/cp/parser.c:38636
0x959335 c_common_parse_file()
../../gcc-source-trunk/gcc/c-family/c-opts.c:1104
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.
$
----------------------------------------------
template < typename ::template A < int > >;