summaryrefslogtreecommitdiffstats
path: root/libjava/classpath/gnu/java/net/protocol
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2009-08-10 20:47:55 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2009-08-10 20:47:55 +0000
commit74d6b34bc5210929bf52593bd9e536acbf6e6d4e (patch)
treea4546f632af854bec30da3734e864ea5f11269f0 /libjava/classpath/gnu/java/net/protocol
parentb7bf3d2595470b8de52b0ccc58b04e6a4065658a (diff)
downloadppe42-gcc-74d6b34bc5210929bf52593bd9e536acbf6e6d4e.tar.gz
ppe42-gcc-74d6b34bc5210929bf52593bd9e536acbf6e6d4e.zip
Implement DR 757: It's OK for a decl to use a type without linkage
so long as the decl is defined in the current translation unit. * decl2.c (no_linkage_decls): New vector. (mark_used): Add decls that use types with no linkage. (cp_write_global_declarations): Check that they are defined. (decl_defined_p, no_linkage_error): New fns. * cp-tree.h (DECL_NO_LINKAGE_CHECKED): New macro. (struct lang_decl_base): Add flag. * decl.c (grokfndecl): Don't check type linkage. (grokvardecl): If the type has no linkage, just make sure DECL_LANG_SPECIFIC is set. * pt.c (check_instantiated_arg): Don't check type linkage. * name-lookup.c (is_local_extern): New fn. * name-lookup.h: Declare it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150634 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/classpath/gnu/java/net/protocol')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud