diff options
author | Ian Lance Taylor <iant@google.com> | 2015-12-01 04:45:53 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2015-12-01 04:45:53 +0000 |
commit | 6ea98dee208bef31e56452969bfa7e85d0dd3c36 (patch) | |
tree | 164f98c4dab2ade3905c22958c2e0849f14c0c86 /gcc/go/go-gcc.cc | |
parent | 45285060c31a9ddc5c95ec09d339ab9308354e6c (diff) | |
download | gcc-6ea98dee208bef31e56452969bfa7e85d0dd3c36.zip gcc-6ea98dee208bef31e56452969bfa7e85d0dd3c36.tar.gz gcc-6ea98dee208bef31e56452969bfa7e85d0dd3c36.tar.bz2 |
re PR go/68477 (error: type variant differs by TYPE_STRING_FLAG.)
PR go/68477
* go-gcc.cc (Gcc_backend::string_constant_expression): Don't set
TYPE_STRING_FLAG on a variant type.
From-SVN: r231096
Diffstat (limited to 'gcc/go/go-gcc.cc')
-rw-r--r-- | gcc/go/go-gcc.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/go/go-gcc.cc b/gcc/go/go-gcc.cc index 31aac2e..cfb1995 100644 --- a/gcc/go/go-gcc.cc +++ b/gcc/go/go-gcc.cc @@ -1279,7 +1279,6 @@ Gcc_backend::string_constant_expression(const std::string& val) tree const_char_type = build_qualified_type(unsigned_char_type_node, TYPE_QUAL_CONST); tree string_type = build_array_type(const_char_type, index_type); - string_type = build_variant_type_copy(string_type); TYPE_STRING_FLAG(string_type) = 1; tree string_val = build_string(val.length(), val.data()); TREE_TYPE(string_val) = string_type; |