aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl.c
diff options
context:
space:
mode:
authorJason Merrill <jason@yorick.cygnus.com>1999-08-12 06:52:30 +0000
committerJason Merrill <jason@gcc.gnu.org>1999-08-12 02:52:30 -0400
commitd2c192ad64b8a1685abe92cd60bc4c496c315cea (patch)
treefe1d0b302af8614440b99979fc35a50e7fcad57b /gcc/cp/decl.c
parent631cf95d8e7cf756b209e2474483eac652d53203 (diff)
downloadgcc-d2c192ad64b8a1685abe92cd60bc4c496c315cea.zip
gcc-d2c192ad64b8a1685abe92cd60bc4c496c315cea.tar.gz
gcc-d2c192ad64b8a1685abe92cd60bc4c496c315cea.tar.bz2
lang-options.h: Add -fms-extensions.
* lang-options.h: Add -fms-extensions. * cp-tree.h: Declare flag_ms_extensions. * decl2.c: Define it. * class.c (instantiate_type): Don't complain about taking the address of a bound member function if -fms-extensions. * typeck.c (build_unary_op): Likewise. * decl.c (grokdeclarator): Or about implicit int. * init.c (resolve_offset_ref): Or about implicit '&'. From-SVN: r28684
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r--gcc/cp/decl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index f4d345a..b6e66a9 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -9426,7 +9426,7 @@ grokdeclarator (declarator, declspecs, decl_context, initialized, attrlist)
&& in_namespace == NULL_TREE
&& current_namespace == global_namespace);
- if (in_system_header)
+ if (in_system_header || flag_ms_extensions)
/* Allow it, sigh. */;
else if (pedantic || ! is_main)
cp_pedwarn ("ANSI C++ forbids declaration `%D' with no type",