]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/pt.c
decl.c (warn_extern_redeclared_static): Check DECL_ARTIFICIAL...
authorJason Merrill <jason@yorick.cygnus.com>
Wed, 21 Jul 1999 08:52:14 +0000 (08:52 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 21 Jul 1999 08:52:14 +0000 (04:52 -0400)
commit9f33663b8d400e06d2d3cb514e952db0bb1e8c4b
tree9aa23e8bb2069a014b5c9f9a1f467a297e95d461
parentaad2312110c2d6382b4627a006b117c8876ae5f2
decl.c (warn_extern_redeclared_static): Check DECL_ARTIFICIAL...

* decl.c (warn_extern_redeclared_static): Check DECL_ARTIFICIAL,
not DECL_BUILT_IN, to determine if a function is internally declared.
(duplicate_decls): Likewise.  Improve handling of builtins.
(push_overloaded_decl): Remove special handling of builtins.

* cp-tree.h (ANON_AGGR_TYPE_P): Use CLASS_TYPE_P.

* decl.c (grokdeclarator): Pull out decl_constant_value in
templates, too.

* class.c (finish_struct, finish_struct_1): Remove 'warn_anon' parm.
* cp-tree.h, pt.c, semantics.c: Adjust.
* method.c (largest_union_member): Remove.

From-SVN: r28204
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/method.c
gcc/cp/pt.c
gcc/cp/semantics.c