diff options
author | Ian Lance Taylor <iant@golang.org> | 2020-11-26 20:03:57 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2020-12-02 08:27:34 -0800 |
commit | ed281e4a944a8b62e66d160b0910bd2be9ef9330 (patch) | |
tree | 7469c3403076547ce5f14af4366513bed4ef3a37 /gcc/go/gofrontend/parse.cc | |
parent | c7932d5626a81a35686a3992b5a02570aba5cd0b (diff) | |
download | gcc-ed281e4a944a8b62e66d160b0910bd2be9ef9330.zip gcc-ed281e4a944a8b62e66d160b0910bd2be9ef9330.tar.gz gcc-ed281e4a944a8b62e66d160b0910bd2be9ef9330.tar.bz2 |
compiler: improve mixed named/unnamed parameter error message
Use the same error as the current gc compiler.
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/273628
Diffstat (limited to 'gcc/go/gofrontend/parse.cc')
-rw-r--r-- | gcc/go/gofrontend/parse.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/go/gofrontend/parse.cc b/gcc/go/gofrontend/parse.cc index b062a47..00ac2f8 100644 --- a/gcc/go/gofrontend/parse.cc +++ b/gcc/go/gofrontend/parse.cc @@ -995,7 +995,7 @@ Parse::parameter_list(bool* is_varargs) } if (mix_error) { - go_error_at(location, "invalid named/anonymous mix"); + go_error_at(location, "mixed named and unnamed function parameters"); saw_error = true; } if (saw_error) |