diff options
| author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-08-10 20:47:55 +0000 |
|---|---|---|
| committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-08-10 20:47:55 +0000 |
| commit | 74d6b34bc5210929bf52593bd9e536acbf6e6d4e (patch) | |
| tree | a4546f632af854bec30da3734e864ea5f11269f0 /libjava/classpath/lib/java/sql/DriverManager.class | |
| parent | b7bf3d2595470b8de52b0ccc58b04e6a4065658a (diff) | |
| download | ppe42-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/lib/java/sql/DriverManager.class')
0 files changed, 0 insertions, 0 deletions

