Commit 479aecf1 by Jason Merrill Committed by Jason Merrill

* parse.y (primary): Fix up the type of string constants.

From-SVN: r21939
parent 9700b81f
1998-08-24 Jason Merrill <jason@yorick.cygnus.com>
* parse.y (primary): Fix up the type of string constants.
1998-08-24 Mark Mitchell <mark@markmitchell.com> 1998-08-24 Mark Mitchell <mark@markmitchell.com>
* typeck.c (convert_for_initialization): Move check for odd uses * typeck.c (convert_for_initialization): Move check for odd uses
......
...@@ -1356,6 +1356,10 @@ primary: ...@@ -1356,6 +1356,10 @@ primary:
if (processing_template_decl) if (processing_template_decl)
push_obstacks (&permanent_obstack, &permanent_obstack); push_obstacks (&permanent_obstack, &permanent_obstack);
$$ = combine_strings ($$); $$ = combine_strings ($$);
if (flag_const_strings)
TREE_TYPE ($$) = build_cplus_array_type
(TREE_TYPE (TREE_TYPE ($$)),
TYPE_DOMAIN (TREE_TYPE ($$)));
if (processing_template_decl) if (processing_template_decl)
pop_obstacks (); pop_obstacks ();
} }
......
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