[Bug c++/84662] [6/7 Regression] internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in is_bitfield_expr_with_lowered_type, at cp/typeck.c:1944

2018-06-25 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84662

Jakub Jelinek  changed:

   What|Removed |Added

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

--- Comment #9 from Jakub Jelinek  ---
Fixed for 6.5 and 7.4+ too.

[Bug c++/84662] [6/7 Regression] internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in is_bitfield_expr_with_lowered_type, at cp/typeck.c:1944

2018-06-25 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84662

--- Comment #8 from Jakub Jelinek  ---
Author: jakub
Date: Mon Jun 25 17:26:53 2018
New Revision: 262069

URL: https://gcc.gnu.org/viewcvs?rev=262069&root=gcc&view=rev
Log:
Backported from mainline
2018-03-02  Jakub Jelinek  

PR c++/84662
* pt.c (tsubst_copy_and_build) : Use
RETURN instead of return.
: Likewise.
: If op0 is error_mark_node, just return
it instead of wrapping it into CONVERT_EXPR.

* g++.dg/cpp1y/pr84662.C: New test.

Added:
branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp1y/pr84662.C
Modified:
branches/gcc-6-branch/gcc/cp/ChangeLog
branches/gcc-6-branch/gcc/cp/pt.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog

[Bug c++/84662] [6/7 Regression] internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in is_bitfield_expr_with_lowered_type, at cp/typeck.c:1944

2018-06-22 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84662

--- Comment #7 from Jakub Jelinek  ---
Author: jakub
Date: Fri Jun 22 20:28:04 2018
New Revision: 261912

URL: https://gcc.gnu.org/viewcvs?rev=261912&root=gcc&view=rev
Log:
Backported from mainline
2018-03-02  Jakub Jelinek  

PR c++/84662
* pt.c (tsubst_copy_and_build) : Use
RETURN instead of return.
: Likewise.
: If op0 is error_mark_node, just return
it instead of wrapping it into CONVERT_EXPR.

* g++.dg/cpp1y/pr84662.C: New test.

Added:
branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1y/pr84662.C
Modified:
branches/gcc-7-branch/gcc/ChangeLog
branches/gcc-7-branch/gcc/cp/pt.c
branches/gcc-7-branch/gcc/testsuite/ChangeLog

[Bug c++/84662] [6/7 Regression] internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in is_bitfield_expr_with_lowered_type, at cp/typeck.c:1944

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

Jakub Jelinek  changed:

   What|Removed |Added

Summary|[6/7/8 Regression] internal |[6/7 Regression] internal
   |compiler error: tree check: |compiler error: tree check:
   |expected class 'type', have |expected class 'type', have
   |'exceptional' (error_mark)  |'exceptional' (error_mark)
   |in  |in
   |is_bitfield_expr_with_lower |is_bitfield_expr_with_lower
   |ed_type, at |ed_type, at
   |cp/typeck.c:1944|cp/typeck.c:1944

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