aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-data-ref.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2018-09-28 13:50:44 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2018-09-28 13:50:44 +0000
commit20a73a194737adc71e93846271132f1153fa8e76 (patch)
tree2e728c762d8fbbc8f02354036c932abcdf83ea28 /gcc/tree-data-ref.c
parentdc16b00717f72aae2d93865a8007ff220b6f022f (diff)
downloadgcc-20a73a194737adc71e93846271132f1153fa8e76.zip
gcc-20a73a194737adc71e93846271132f1153fa8e76.tar.gz
gcc-20a73a194737adc71e93846271132f1153fa8e76.tar.bz2
compiler: fix parsing issue with non-ASCII first package char
Fix a bug in the parser code that decides whether a given name should be considered exported or not. The function Lex::is_exported_name (which assumes that its input is a mangled name) was being called on non-mangled (raw utf-8) names in various places. For the bug in question this caused an imported package to be registered under the wrong name. To fix the issue, rename 'Lex::is_exported_name' to 'Lex::is_exported_mangled_name', and add a new 'Lex::is_exported_name' that works on utf-8 strings. Fixes golang/go#27836. Reviewed-on: https://go-review.googlesource.com/137736 From-SVN: r264690
Diffstat (limited to 'gcc/tree-data-ref.c')
0 files changed, 0 insertions, 0 deletions