This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/34912] [4.1/4.2/4.3 regression] ICE with friend in local class



------- Comment #2 from jason at gcc dot gnu dot org  2008-01-22 19:51 -------
Subject: Bug 34912

Author: jason
Date: Tue Jan 22 19:50:37 2008
New Revision: 131740

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131740
Log:
        PR c++/34912
        * friend.c (do_friend): Check for prior declaration of a friend
        function of a local class.
        * name-lookup.c (lookup_name_innermost_nonclass_level):
        No longer static.
        * name-lookup.h: Declare it.

Added:
    trunk/gcc/testsuite/g++.dg/lookup/friend12.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/friend.c
    trunk/gcc/cp/name-lookup.c
    trunk/gcc/cp/name-lookup.h
    trunk/gcc/testsuite/g++.dg/parse/local-class1.C
    trunk/gcc/testsuite/g++.old-deja/g++.jason/scoping12.C


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34912


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]