aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorKriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>2003-01-25 16:28:24 +0000
committerKriang Lerdsuwanakij <lerdsuwa@gcc.gnu.org>2003-01-25 16:28:24 +0000
commitfb8eab9658b0d233f37b970b068e80ce1d122648 (patch)
tree459df4b8212a2fb707b3789ebdb33946b21acf88 /gcc/cp
parent36ddc6b01b29ce73ccbfa415bc5ef9f85b300cb6 (diff)
downloadgcc-fb8eab9658b0d233f37b970b068e80ce1d122648.zip
gcc-fb8eab9658b0d233f37b970b068e80ce1d122648.tar.gz
gcc-fb8eab9658b0d233f37b970b068e80ce1d122648.tar.bz2
cp-tree.h (flagged_type_tree_s): Remove.
* cp-tree.h (flagged_type_tree_s): Remove. (check_for_new_type): Likewise. * typeck2.c (check_for_new_type): Likewise. From-SVN: r61779
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog6
-rw-r--r--gcc/cp/cp-tree.h7
-rw-r--r--gcc/cp/typeck2.c13
3 files changed, 6 insertions, 20 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index a7f9dfa..336370f 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,9 @@
+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.
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h
index 99931c7..fa73d67 100644
--- a/gcc/cp/cp-tree.h
+++ b/gcc/cp/cp-tree.h
@@ -253,12 +253,6 @@ struct lang_id2 GTY(())
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;
@@ -4433,7 +4427,6 @@ extern tree build_scoped_ref (tree, tree, tree *);
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);
diff --git a/gcc/cp/typeck2.c b/gcc/cp/typeck2.c
index b71b4ff..0a5b4dc 100644
--- a/gcc/cp/typeck2.c
+++ b/gcc/cp/typeck2.c
@@ -1263,19 +1263,6 @@ build_functional_cast (exp, parms)
}
-/* 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