+2007-08-17 Paolo Carlini <pcarlini@suse.de>
+
+ PR c++/32870
+ * parser.c (cp_parser_class_head): Improve error message.
+
2007-08-16 Seongbae Park <seongbae.park@gmail.com>
- * pt.c (instantiate_decl): Set input_location
- for the function end.
+ * pt.c (instantiate_decl): Set input_location
+ for the function end.
2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
class was originally declared, the program is invalid. */
if (scope && !is_ancestor (scope, nested_name_specifier))
{
- error ("declaration of %qD in %qD which does not enclose %qD",
- type, scope, nested_name_specifier);
+ if (at_namespace_scope_p ())
+ error ("declaration of %qD in namespace %qD which does not "
+ "enclose %qD", type, scope, nested_name_specifier);
+ else
+ error ("declaration of %qD in %qD which does not enclose %qD",
+ type, scope, nested_name_specifier);
type = NULL_TREE;
goto done;
}