]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
decl.c (duplicate_decls): Don't complain about different exceptions from an internal...
authorJason Merrill <jason@yorick.cygnus.com>
Tue, 25 Aug 1998 09:47:30 +0000 (03:47 -0600)
committerJeff Law <law@gcc.gnu.org>
Tue, 25 Aug 1998 09:47:30 +0000 (03:47 -0600)
8
* decl.c (duplicate_decls): Don't complain about different
exceptions from an internal decl even if pedantic.

From-SVN: r21963

gcc/cp/decl.c

index 4ffe6d97358ba714d04b73f599bc99ea618c51ec..496158d942b43c5787f630be1d6abab458e07cb2 100644 (file)
@@ -2991,8 +2991,8 @@ duplicate_decls (newdecl, olddecl)
          TREE_TYPE (olddecl) = build_exception_variant (newtype,
                                                         TYPE_RAISES_EXCEPTIONS (oldtype));
 
-         if ((pedantic || (! DECL_IN_SYSTEM_HEADER (olddecl)
-                           && DECL_SOURCE_LINE (olddecl) != 0))
+         if ((pedantic || ! DECL_IN_SYSTEM_HEADER (olddecl))
+             && DECL_SOURCE_LINE (olddecl) != 0
              && flag_exceptions
              && ! compexcepttypes (TREE_TYPE (newdecl), TREE_TYPE (olddecl)))
            {