[Bug go/67968] go1: internal compiler error: in write_specific_type_functions, at go/gofrontend/types.cc:1812

ian at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Nov 1 20:47:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67968

--- Comment #16 from ian at gcc dot gnu.org <ian at gcc dot gnu.org> ---
Author: ian
Date: Sun Nov  1 20:46:37 2015
New Revision: 229644

URL: https://gcc.gnu.org/viewcvs?rev=229644&root=gcc&view=rev
Log:
        PR go/67968
    compiler: Traverse types of call expressions.

    https://gcc.gnu.org/PR67968 provides a test case that causes a gccgo
    crash on valid code.  The compiler failed to build the hash and equality
    functions required for a type descriptor.  The descriptor is for an
    unnamed type that is being returned by a function imported from a
    different package.  The unnamed type is being implicitly converted to an
    interface type by a return statement.  The fix is to ensure that the
    type of a call expression is always traversed.

    Test case sent out for the master testsuite as
    https://golang.org/cl/16532 .

Modified:
    branches/gcc-4_9-branch/gcc/go/gofrontend/expressions.cc


More information about the Gcc-bugs mailing list