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++/24275] [4.0/4.1 Regression] Previously accepted code fails with 4.0.2



------- Comment #6 from cvs-commit at gcc dot gnu dot org  2005-10-10 14:42 -------
Subject: Bug 24275

CVSROOT:        /cvs/gcc
Module name:    gcc
Changes by:     mmitchel@gcc.gnu.org    2005-10-10 14:42:14

Modified files:
        gcc/cp         : pt.c 
Added files:
        gcc/testsuite/g++.dg/template: static19.C 

Log message:
        PR c++/24275
        * pt.c (instantiate_decl): Instantiate the initializer of
        a static data member in the namespace containing the class
        containing the static data member.
        PR c++/24275
        * g++.dg/template/static19.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&r1=1.1041&r2=1.1042
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/static19.C.diff?cvsroot=gcc&r1=NONE&r2=1.1


-- 


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


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