Skip to content

Commit

Permalink
compiler: Disallow rune literals with '\X'.
Browse files Browse the repository at this point in the history
    
    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


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@226184 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
ian committed Jul 24, 2015
1 parent e757a6a commit 5f7bd04
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion gcc/go/gofrontend/MERGE
Original file line number Diff line number Diff line change
@@ -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.
1 change: 0 additions & 1 deletion gcc/go/gofrontend/lex.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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]))
{
Expand Down

0 comments on commit 5f7bd04

Please sign in to comment.