diff options
author | Jason Merrill <jason@redhat.com> | 2009-10-28 14:39:25 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2009-10-28 14:39:25 -0400 |
commit | 34ad94d88cc7646f1d1eceea20a4451100265fd5 (patch) | |
tree | a1c7a4094628d9b9fe90bf01e87662322ada5d4c | |
parent | c4bb78e9cd108ff21b1941ea4df531b6b304004b (diff) | |
download | gcc-34ad94d88cc7646f1d1eceea20a4451100265fd5.zip gcc-34ad94d88cc7646f1d1eceea20a4451100265fd5.tar.gz gcc-34ad94d88cc7646f1d1eceea20a4451100265fd5.tar.bz2 |
* decl.c (cp_fname_init): Correct build_string argument.
From-SVN: r153681
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/decl.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index ba4caf8..21eff5c 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2009-10-28 Jason Merrill <jason@redhat.com> + + * decl.c (cp_fname_init): Correct build_string argument. + 2009-10-27 Jason Merrill <jason@redhat.com> Allow no-capture lambdas to convert to function pointer. diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 33023a7..349d3b3 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -3512,7 +3512,7 @@ cp_fname_init (const char* name, tree *type_p) { length = strlen (name); domain = build_index_type (size_int (length)); - init = build_string (length + 1, name); + init = build_string (length, name); } type = build_qualified_type (char_type_node, TYPE_QUAL_CONST); |