diff options
author | Jason Merrill <jason@redhat.com> | 2019-04-03 16:09:17 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2019-04-03 16:09:17 -0400 |
commit | b8836dbec1a36eb3a00c789a4ed1e64ba28ee6fe (patch) | |
tree | 2d7e515d7d3bb8d8b8a27503153cb5124dc1de94 /gcc/loop-invariant.c | |
parent | bc53dee0baa3f3e06c89081ef01f506037acd1ff (diff) | |
download | gcc-b8836dbec1a36eb3a00c789a4ed1e64ba28ee6fe.zip gcc-b8836dbec1a36eb3a00c789a4ed1e64ba28ee6fe.tar.gz gcc-b8836dbec1a36eb3a00c789a4ed1e64ba28ee6fe.tar.bz2 |
PR c++/89331 - ICE with offsetof in incomplete class.
We were aborting when build_base_path returned an error because of the
derived class not being complete yet, which wasn't considered by the assert.
Fixed by checking for complete type first. The semantics.c change avoids
a duplicate error message.
* semantics.c (finish_offsetof): Handle error_mark_node.
* typeck.c (build_class_member_access_expr): Call
complete_type_or_maybe_complain before converting to base.
From-SVN: r270135
Diffstat (limited to 'gcc/loop-invariant.c')
0 files changed, 0 insertions, 0 deletions