public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/63423] New: internal compiler error: in cp_parser_abort_tentative_parse, at cp/parser.c
@ 2014-10-01  7:33 kretz at kde dot org
  2014-11-23 14:33 ` [Bug c++/63423] " paolo.carlini at oracle dot com
  0 siblings, 1 reply; 2+ messages in thread
From: kretz at kde dot org @ 2014-10-01  7:33 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c++/63423] internal compiler error: in cp_parser_abort_tentative_parse, at cp/parser.c
  2014-10-01  7:33 [Bug c++/63423] New: internal compiler error: in cp_parser_abort_tentative_parse, at cp/parser.c kretz at kde dot org
@ 2014-11-23 14:33 ` paolo.carlini at oracle dot com
  0 siblings, 0 replies; 2+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-11-23 14:33 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
      Known to work|                            |4.9.0, 5.0
         Resolution|---                         |FIXED
   Target Milestone|---                         |4.9.0

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Already fixed for 4.9.0 and 5.0.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-11-23 14:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-01  7:33 [Bug c++/63423] New: internal compiler error: in cp_parser_abort_tentative_parse, at cp/parser.c kretz at kde dot org
2014-11-23 14:33 ` [Bug c++/63423] " paolo.carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).