]> gcc.gnu.org Git - gcc.git/commit - gcc/cp/name-lookup.c
Friend class name lookup 1/n, PR c++/18471
authorKriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
Mon, 15 Nov 2004 10:34:06 +0000 (10:34 +0000)
committerKriang Lerdsuwanakij <lerdsuwa@gcc.gnu.org>
Mon, 15 Nov 2004 10:34:06 +0000 (10:34 +0000)
commit461c6fce5605433279d0d67efa907b87a53db54e
tree7d0dde0911de811100f87808e5c389d6fecd8f85
parente24b3cc0aa9b5e8d9c37e21ca974fe89a7a04021
Friend class name lookup 1/n, PR c++/18471

Friend class name lookup 1/n, PR c++/18471
* decl.c (lookup_and_check_tag): New function.
(xref_tag, start_enum): Use it.
(check_elaborated_type_specifier): Move TEMPLATE_TYPE_PARM check
before !DECL_IMPLICIT_TYPEDEF_P.  Also display previously declared
location.
* name-lookup.c (lookup_name_current_level): Rename to ...
(lookup_name_innermost_nonclass_level): ... this.
(lookup_type_scope): New function.
* name-lookup.h (lookup_name_current_level): Rename to ...
(lookup_name_innermost_nonclass_level): ... this.
(lookup_type_scope): Add declaration.

* g++.dg/lookup/struct1.C: Adjust expected error.
* g++.dg/parse/elab1.C: Likewise.
* g++.dg/parse/elab2.C: Likewise.
* g++.dg/parse/int-as-enum1.C: Likewise.
* g++.dg/parse/struct-as-enum1.C: Likewise.
* g++.dg/parse/typedef1.C: Likewise.
* g++.dg/parse/typedef3.C: Likewise.
* g++.dg/parse/typedef4.C: Likewise.
* g++.dg/parse/typedef5.C: Likewise.
* g++.dg/template/nontype4.C: Likewise.
* g++.old-deja/g++.benjamin/typedef01.C: Likewise.
* g++.old-deja/g++.other/elab1.C: Likewise.
* g++.old-deja/g++.other/syntax4.C: Likewise.

From-SVN: r90657
19 files changed:
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/name-lookup.c
gcc/cp/name-lookup.h
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/struct1.C
gcc/testsuite/g++.dg/parse/elab1.C
gcc/testsuite/g++.dg/parse/elab2.C
gcc/testsuite/g++.dg/parse/int-as-enum1.C
gcc/testsuite/g++.dg/parse/struct-as-enum1.C
gcc/testsuite/g++.dg/parse/typedef1.C
gcc/testsuite/g++.dg/parse/typedef3.C
gcc/testsuite/g++.dg/parse/typedef4.C
gcc/testsuite/g++.dg/parse/typedef5.C
gcc/testsuite/g++.dg/template/crash26.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/nontype4.C
gcc/testsuite/g++.old-deja/g++.benjamin/typedef01.C
gcc/testsuite/g++.old-deja/g++.other/elab1.C
gcc/testsuite/g++.old-deja/g++.other/syntax4.C
This page took 0.061012 seconds and 5 git commands to generate.