This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/63423] New: internal compiler error: in cp_parser_abort_tentative_parse, at cp/parser.c


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63423

            Bug ID: 63423
           Summary: internal compiler error: in
                    cp_parser_abort_tentative_parse, at cp/parser.c
           Product: gcc
           Version: 4.8.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kretz at kde dot org

Testcase:

template <typename F, typename A,
          typename = decltype(static_cast<void (&)(A &)>(F::operator())(A()))>
void test();

Compile it with '-std=c++11'. Tested to fail with GCC 4.8.[0123]. GCC 4.9.x
does not fail.

Output from GCC 4.8.3:

ice.cpp:2:76: internal compiler error: in cp_parser_abort_tentative_parse, at
cp/parser.c:23778
           typename = decltype(static_cast<void (&)(A &)>(F::operator())(A()))>
                                                                            ^
0x584872 cp_parser_abort_tentative_parse
        ../.././gcc/cp/parser.c:23777
0x5937ec cp_parser_decltype
        ../.././gcc/cp/parser.c:11425
0x592172 cp_parser_simple_type_specifier
        ../.././gcc/cp/parser.c:13885
0x58e83d cp_parser_type_specifier
        ../.././gcc/cp/parser.c:13756
0x590f17 cp_parser_type_specifier_seq
        ../.././gcc/cp/parser.c:17296
0x59638a cp_parser_type_id_1
        ../.././gcc/cp/parser.c:17177
0x5a0e5a cp_parser_type_id
        ../.././gcc/cp/parser.c:17214
0x5a0e5a cp_parser_type_parameter
        ../.././gcc/cp/parser.c:12512
0x5a1019 cp_parser_template_parameter
        ../.././gcc/cp/parser.c:12345
0x5a1019 cp_parser_template_parameter_list
        ../.././gcc/cp/parser.c:12262
0x5a67d9 cp_parser_template_declaration_after_export
        ../.././gcc/cp/parser.c:21914
0x5aafa9 cp_parser_declaration
        ../.././gcc/cp/parser.c:10412
0x5a9bfd cp_parser_declaration_seq_opt
        ../.././gcc/cp/parser.c:10334
0x5ab402 cp_parser_translation_unit
        ../.././gcc/cp/parser.c:3813
0x5ab402 c_parse_file()
        ../.././gcc/cp/parser.c:28334
0x641b84 c_common_parse_file()
        ../.././gcc/c-family/c-opts.c:1052


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]