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++/28338] [4.0/4.1/4.2 regression] ICE/rejects-valid with references



------- Comment #2 from mmitchel at gcc dot gnu dot org  2006-07-19 22:49 -------
Subject: Bug 28338

Author: mmitchel
Date: Wed Jul 19 22:49:20 2006
New Revision: 115600

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115600
Log:
        PR c++/28338
        * decl.c (layout_var_decl): Don't call push_local_name here.
        (initialize_artificial_var): Assert artificiality.
        (cp_finish_decl): Call push_local_name here.
        PR c++/28338
        * g++.dg/init/ref13.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/init/ref13.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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