[Bug c++/84082] [7 Regression] ICE with broken template function definition

2018-03-03 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84082

Jakub Jelinek  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #9 from Jakub Jelinek  ---
Fixed also for 7.4+.

[Bug c++/84082] [7 Regression] ICE with broken template function definition

2018-03-03 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84082

--- Comment #8 from Jakub Jelinek  ---
Author: jakub
Date: Sat Mar  3 13:26:52 2018
New Revision: 258185

URL: https://gcc.gnu.org/viewcvs?rev=258185=gcc=rev
Log:
Backported from mainline
2018-02-07  Jakub Jelinek  

PR c++/84082
* parser.c (cp_parser_dot_deref_incomplete): New function.
(cp_parser_postfix_dot_deref_expression): Use it.

* g++.dg/template/incomplete11.C: New test.
* g++.dg/parse/crash67.C: Expect an incomplete type diagnostics too.

Added:
branches/gcc-7-branch/gcc/testsuite/g++.dg/template/incomplete11.C
Modified:
branches/gcc-7-branch/gcc/cp/ChangeLog
branches/gcc-7-branch/gcc/cp/parser.c
branches/gcc-7-branch/gcc/testsuite/ChangeLog
branches/gcc-7-branch/gcc/testsuite/g++.dg/parse/crash67.C

[Bug c++/84082] [7 Regression] ICE with broken template function definition

2018-02-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84082

Jakub Jelinek  changed:

   What|Removed |Added

Summary|[7/8 Regression] ICE with   |[7 Regression] ICE with
   |broken template function|broken template function
   |definition  |definition

--- Comment #7 from Jakub Jelinek  ---
Fixed on the trunk so far.