(check_for_new_type): Likewise.
* typeck2.c (check_for_new_type): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61779
138bc75d-0d04-0410-961f-
82ee72b054a4
+2003-01-25 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
+
+ * cp-tree.h (flagged_type_tree_s): Remove.
+ (check_for_new_type): Likewise.
+ * typeck2.c (check_for_new_type): Likewise.
+
2003-01-23 Nathanael Nerode <neroden@gcc.gnu.org>
* dump.c: ANSIfy function declarations and definitions.
tree error_locus;
};
-typedef struct flagged_type_tree_s GTY(())
-{
- tree t;
- int new_type_flag;
-} flagged_type_tree;
-
typedef struct template_parm_index_s GTY(())
{
struct tree_common common;
extern tree build_x_arrow (tree);
extern tree build_m_component_ref (tree, tree);
extern tree build_functional_cast (tree, tree);
-extern void check_for_new_type (const char *, flagged_type_tree);
extern tree add_exception_specifier (tree, tree, int);
extern tree merge_exception_specifiers (tree, tree);
}
\f
-/* Complain about defining new types in inappropriate places. We give an
- exception for C-style casts, to accommodate GNU C stylings. */
-
-void
-check_for_new_type (string, inptree)
- const char *string;
- flagged_type_tree inptree;
-{
- if (inptree.new_type_flag
- && (pedantic || strcmp (string, "cast") != 0))
- pedwarn ("ISO C++ forbids defining types within %s", string);
-}
-
/* Add new exception specifier SPEC, to the LIST we currently have.
If it's already in LIST then do nothing.
Moan if it's bad and we're allowed to. COMPLAIN < 0 means we