aboutsummaryrefslogtreecommitdiff
path: root/gcc/reload.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2009-08-10 16:47:55 -0400
committerJason Merrill <jason@gcc.gnu.org>2009-08-10 16:47:55 -0400
commite8f43da6f9d34f17f3e6e4adbf42e79addb5e217 (patch)
treea4546f632af854bec30da3734e864ea5f11269f0 /gcc/reload.c
parent8d1b99e26ad5c88a05c7c7ba2fbb05bdc345e9d2 (diff)
downloadgcc-e8f43da6f9d34f17f3e6e4adbf42e79addb5e217.zip
gcc-e8f43da6f9d34f17f3e6e4adbf42e79addb5e217.tar.gz
gcc-e8f43da6f9d34f17f3e6e4adbf42e79addb5e217.tar.bz2
Implement DR 757...
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. From-SVN: r150634
Diffstat (limited to 'gcc/reload.c')
0 files changed, 0 insertions, 0 deletions