diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-12-22 23:57:08 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-12-22 23:57:08 +0000 |
commit | c79f94a2de0ff5b84115ead430c145bd55f9f145 (patch) | |
tree | bfd19fff8d2b9d5fc60b710cb3426bd7f1df5b92 /gcc/cp/lex.c | |
parent | eaa2deb0c5c041225bd90f5e328e6cf2f4915c9a (diff) | |
download | gcc-c79f94a2de0ff5b84115ead430c145bd55f9f145.tar.gz |
* c-common.c (flag_external_templates): Remove.
(flag_alt_external_templates): Likewise.
* c-common.h (flag_external_templates): Remove.
(flag_alt_external_templates): Likewise.
* c-opts.c (c_common_handle_option): Unsupport
-falt-external-templates and -ftemplates.
* doc/invoke.texi: Remove mention of -fexternal-templates and
-falt-external-templates.
* decl.c (start_function): Do not check
flag_alt_external_templates or flag_external_templates.
* decl2.c (warn_if_unknown_interface): Likewise.
* lex.c (extract_interface_info): Likewise.
* pt.c (lookup_template_class): Likewise.
PR c++/12862
* name-lookup.c (pushdecl): Look up all namespace-scope entities
in their corresponding namespace.
* g++.old-deja/g++.jason/template18.C: Remove.
* g++.old-deja/g++.jason/template37.C: Likewise.
PR c++/12862
* g++.dg/lookup/ns1.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74954 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/lex.c')
-rw-r--r-- | gcc/cp/lex.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c index b2d2f1c31fd..d22f5b063c1 100644 --- a/gcc/cp/lex.c +++ b/gcc/cp/lex.c @@ -436,18 +436,9 @@ cxx_init (void) void extract_interface_info (void) { - struct c_fileinfo *finfo = 0; - - if (flag_alt_external_templates) - { - tree til = tinst_for_decl (); - - if (til) - finfo = get_fileinfo (TINST_FILE (til)); - } - if (!finfo) - finfo = get_fileinfo (input_filename); + struct c_fileinfo *finfo; + finfo = get_fileinfo (input_filename); interface_only = finfo->interface_only; interface_unknown = finfo->interface_unknown; } |