commit | f4956f807f1a33e406cf1b3bf3479a9ac1c1015a | [log] [tgz] |
---|---|---|
author | Ian Lance Taylor <iant@golang.org> | Tue Dec 03 20:25:47 2024 -0800 |
committer | Ian Lance Taylor <iant@golang.org> | Wed Dec 04 23:19:08 2024 +0000 |
tree | fe92900fa81455a6ea4c1f17120cf511f5317d88 | |
parent | dfe585bf82380630697e96c249de825c5f655afe [diff] |
compiler: traverse method declarations We were not consistently traversing method declarations, which appear if there is a method without a body. The gc compiler rejects that case, but gofrontend currently permits it. Maybe that should change, but not today. This avoids a compiler crash if there are method declarations with types that require specific functions. I didn't bother with a test case because a program with method declarations is almost certainly invalid anyhow. Fixes https://gcc.gnu.org/PR117891 Change-Id: I048b35b313629c7a5474cb7df38caa26afafab96 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/633495 Reviewed-by: Michael Knyszek <mknyszek@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com>
Ian Lance Taylor Last update 15 June 2014
This is a compiler frontend for the Go programming language. The frontend was originally developed at Google, and was released in November 2009. It was originally written by Ian Lance Taylor.
It was originally written for GCC. As of this writing it only supports GCC, but the GCC support has been separated from the rest of the frontend, so supporting another compiler is feasible.
The go subdirectory holds the frontend source code. This is mirrored to the gcc/go subdirectory in the GCC repository.
The libgo subdirectory holds the library source code. This is a copy of the main Go library with various changes appropriate for this compiler. The main Go library is hosted at http://go.googlesource.com/go, in the src directory. The libgo subdirectory is mirrored to the libgo subdirectory in the gcc repository.
To contribute patches to the files in this directory, please see Contributing to the gccgo frontend.
The master copy of these files is hosted in Gerrit (there is a mirror at Github). Changes to these files require signing a Google contributor license agreement. If you are the copyright holder, you will need to agree to the Google Individual Contributor License Agreement. This agreement can be completed online.
If your organization is the copyright holder, the organization will need to agree to the Google Software Grant and Corporate Contributor License Agreement.
If the copyright holder for your code has already completed the agreement in connection with another Google open source project, it does not need to be completed again.