Commit 6c07d08b by Jonathan Wakely Committed by Jonathan Wakely

parser.c (cp_parser_mem_initializer_list): Change error text.

2010-06-02  Jonathan Wakely  <jwakely.gcc@gmail.com>

	* parser.c (cp_parser_mem_initializer_list): Change error text.

From-SVN: r160198
parent eef4a603
2010-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
* parser.c (cp_parser_mem_initializer_list): Change error text.
2010-06-02 Jakub Jelinek <jakub@redhat.com> 2010-06-02 Jakub Jelinek <jakub@redhat.com>
* cp-objcp-common.c (shadowed_var_for_decl): Change into * cp-objcp-common.c (shadowed_var_for_decl): Change into
......
...@@ -10136,7 +10136,7 @@ cp_parser_mem_initializer_list (cp_parser* parser) ...@@ -10136,7 +10136,7 @@ cp_parser_mem_initializer_list (cp_parser* parser)
mem-initializer-list. */ mem-initializer-list. */
if (!DECL_CONSTRUCTOR_P (current_function_decl)) if (!DECL_CONSTRUCTOR_P (current_function_decl))
error_at (token->location, error_at (token->location,
"only constructors take base initializers"); "only constructors take member initializers");
/* Loop through the list. */ /* Loop through the list. */
while (true) while (true)
......
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