diff options
author | Ian Lance Taylor <iant@golang.org> | 2024-12-03 20:25:47 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2024-12-04 15:20:05 -0800 |
commit | 9a53561075d7c2655d5fb6844c5493023b9bb813 (patch) | |
tree | 7565bd60a9c16a875f7455b058bde0a3d737e910 /gcc/testsuite/c-c++-common | |
parent | 2576dd68a60b3f317f89c8c007d0eea63151a793 (diff) | |
download | gcc-9a53561075d7c2655d5fb6844c5493023b9bb813.zip gcc-9a53561075d7c2655d5fb6844c5493023b9bb813.tar.gz gcc-9a53561075d7c2655d5fb6844c5493023b9bb813.tar.bz2 |
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 PR go/117891
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/633495
Diffstat (limited to 'gcc/testsuite/c-c++-common')
0 files changed, 0 insertions, 0 deletions