diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2015-07-24 18:28:40 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2015-07-24 18:28:40 +0000 |
commit | 37aa341d9dffe66a784d3d1453042e9e7d315ec9 (patch) | |
tree | 9d8e3eceada9c9dc0cd7eb051b66503a36ab04e6 /gcc | |
parent | 6b1786aa65f71d94362d38ada4bf96b6841a59cb (diff) | |
download | gcc-37aa341d9dffe66a784d3d1453042e9e7d315ec9.zip gcc-37aa341d9dffe66a784d3d1453042e9e7d315ec9.tar.gz gcc-37aa341d9dffe66a784d3d1453042e9e7d315ec9.tar.bz2 |
compiler: Disallow rune literals with '\X'.
http://golang.org/ref/spec#Rune_literals states that rune literals
encoded as hex bytes must begin with lowercase '\x'.
Fixes golang/go#11575.
Reviewed-on: https://go-review.googlesource.com/12158
From-SVN: r226184
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/go/gofrontend/MERGE | 2 | ||||
-rw-r--r-- | gcc/go/gofrontend/lex.cc | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE index 2610a78..797ec54 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -1,4 +1,4 @@ -ac462880e803a926005f1756b0f8d82ff0c47499 +46117382a58843af60fc2feab68c433a96f79e79 The first line of this file holds the git revision number of the last merge done from the gofrontend repository. diff --git a/gcc/go/gofrontend/lex.cc b/gcc/go/gofrontend/lex.cc index aa7071d..9c41927 100644 --- a/gcc/go/gofrontend/lex.cc +++ b/gcc/go/gofrontend/lex.cc @@ -1197,7 +1197,6 @@ Lex::advance_one_char(const char* p, bool is_single_quote, unsigned int* value, : p + 1); case 'x': - case 'X': *is_character = false; if (Lex::is_hex_digit(p[1]) && Lex::is_hex_digit(p[2])) { |