This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug go/52349] [4.7 Regression] go doesn't bootstrap


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52349

--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-02-23 10:31:59 UTC ---
Type built in

// Create a placeholder for a pointer type.

Btype*
Gcc_backend::placeholder_pointer_type(const std::string& name,
                                      Location location, bool)
{
  tree ret = build_variant_type_copy(ptr_type_node);
  if (!name.empty())
    {
      tree decl = build_decl(location.gcc_location(), TYPE_DECL,
                             get_identifier_from_string(name),
                             ret);
      TYPE_NAME(ret) = decl;
    }
  return this->make_type(ret);
}

that's bogus.  Consider using build_distinct_type_copy instead.

That fixes it for me.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]