This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r249208 - in /trunk/gcc/go/gofrontend: MERGE ty...
- From: ian at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Wed, 14 Jun 2017 23:42:54 -0000
- Subject: r249208 - in /trunk/gcc/go/gofrontend: MERGE ty...
Author: ian
Date: Wed Jun 14 23:42:53 2017
New Revision: 249208
URL: https://gcc.gnu.org/viewcvs?rev=249208&root=gcc&view=rev
Log:
compiler: avoid crash on erroneous type
If there is an error constructing the backend type, the GCC backend
will report that the size is 1. That will then cause construction of
the ptrmask to crash. Avoid that case by just generating an empty
ptrmask.
Noticed while compiling a broken package. The policy I've been
following is to not commit a test case for a compiler crash on invalid
code, so no test case.
Reviewed-on: https://go-review.googlesource.com/45775
Modified:
trunk/gcc/go/gofrontend/MERGE
trunk/gcc/go/gofrontend/types.cc