Commit 34ad94d8 by Jason Merrill Committed by Jason Merrill

* decl.c (cp_fname_init): Correct build_string argument.

From-SVN: r153681
parent c4bb78e9
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> 2009-10-27 Jason Merrill <jason@redhat.com>
Allow no-capture lambdas to convert to function pointer. Allow no-capture lambdas to convert to function pointer.
......
...@@ -3512,7 +3512,7 @@ cp_fname_init (const char* name, tree *type_p) ...@@ -3512,7 +3512,7 @@ cp_fname_init (const char* name, tree *type_p)
{ {
length = strlen (name); length = strlen (name);
domain = build_index_type (size_int (length)); 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); type = build_qualified_type (char_type_node, TYPE_QUAL_CONST);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment