re PR c++/85265 ([concepts] ICE with missing identifier)
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 29 Aug 2018 20:29:55 +0000 (20:29 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 29 Aug 2018 20:29:55 +0000 (20:29 +0000)
commit849ec6caae2fa53d3f552a1d58fd151a93a39edc
treed77f992637292e58d75092ef01c038e185996a64
parente84bf0ef66aa72228299dd92d342c4de3a37c55c
re PR c++/85265 ([concepts] ICE with missing identifier)

/cp
2018-08-29  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/85265
* parser.c (cp_parser_introduction_list): If cp_parser_identifier
returns error_mark_node early exit the loop.
(cp_parser_template_introduction): Improve error-recovery, remove
error call about empty introduction-list.

/testsuite
2018-08-29  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/85265
* g++.dg/concepts/pr85265.C: New.

From-SVN: r263966
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/concepts/pr85265.C [new file with mode: 0644]