This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/26573] [4.0/4.1/4.2 regression] Duplicate message for static member in local class
- From: "lmillward at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Aug 2006 15:22:13 -0000
- Subject: [Bug c++/26573] [4.0/4.1/4.2 regression] Duplicate message for static member in local class
- References: <bug-26573-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from lmillward at gcc dot gnu dot org 2006-08-27 15:22 -------
Subject: Bug 26573
Author: lmillward
Date: Sun Aug 27 15:22:05 2006
New Revision: 116490
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116490
Log:
PR c++/26573
* class.c (check_field_decls): Don't issue error about
local classes containing static data members.
* g++.dg/other/static2.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/other/static2.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/class.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26573